Gulbarga was the capital of Bakhmanids until 1424, when the court moved to Bidar. This city was chosen by the founder of the dynasty, Hasan Zafar-Khan, in 1347 adopted the name Muzaffar Ala-ud-din Bakhman Shah, claiming origin from the hero of the Persian epic Bachmann.