During Babak's youth, his travelling father was killed near Sabalan. Till the age of twelve, Babak worked as a cowherd, and afterwards entered the service of an Arab warlord named Shibl ibn al-Muthanna al-Azdi in Sarab, where he worked as a groom and servant. The ghilman (slaves) of Shibl taught Babak how to play the lute. Babak also learned to recite poetry, probably in the local Adhari dialect. According to the 11th-century writer Abu'l Ma'ali, Babak played the lute and sang songs for the locals whilst working as a fruit vendor in the village. Babak later established himself in the city of Tabriz. There he worked under another Arab warlord, Muhammad ibn Rawwad Azdi for two years, until he reached adulthood and left for his village, Bilalabad. There Babak encountered a wealthy and influential landlord named Javidhan, who was reportedly impressed with the latters cleverness, and as result recruited him into his service. Unlike the previous men Babak had served, Javidhan was a local Iranian, and the leader of one of the two Khurramite movements in Azerbaijan. The leader of the other Khurramite movement was a certain Abu Imran, who often clashed with Javidhans forces. During one of the clashes, Abu Imran was defeated and killed, whilst Javidhan was mortally wounded, dying three days later. Javidhan was succeeded by Babak, who had already converted to Khurramism under the latters service. It was most probably during this period that Babak changed his name from al-Hasan to Babak.