He belonged to Imamia sect of Islam, later he was influenced by the teachings of his cousin, Abdul Qadir Gilani, and ended up becoming a Hanbali-Zaydi. His Hanbali-Zaydi Sufi school tries to integrate perfectionism of commandments and agape oriented activism. Ibn Arabi also tried this synergy by admiring Ibn Hazm which raised legal paradoxes and became controversial in ultranomian circles.
Qutb Shah, in first quarter of 11th century, ruled Herat (then Khorasan), where supposedly there was a power vacuum, and people made him their ruler due to his Religious Stature. After taking the throne of Herat, he also joined forces with Mahmud of Ghazni when Mahmud invaded Sub-continent. He ruled Herat until his death. All of his children migrated to modern-day Pakistan, and settled near Salt Range, on his command. He is considered to be the primary ancestor of the Awans. He is buried in Iraq near Imam Musa Kazim.