In this post I am going to explain how to get parent category of specific category in magento 2.

1. Using Dependency Injection

Add below code snippet in Block class.

Add below code snippet in template file.

Related Read:  How to change default sort order from ascending to descending in Magento 2?

2. Using Object Manager

Thats it. Enjoy Magento 2!!