Following a brief military service, Yaghma was reinstated as a scribe by persuading Zolfaqar Khan's brother-in-law, Mohammad Ali Mazandarani.
Yaghma's rise in social status was greatly influenced by Zolfaqar Khan becoming an important commander for Fath-Ali Shah (r. 1797–1834), which he did due to his victory in the Khorasan war of 1817–1818.
[2] During his travels, Yaghma briefly resided in the city of Qom, where he co-founded the literary association Anjoman-e Mofakeheh ("Facetiae Community") alongside Mohammad Ali Mazandarani and Mirza Mahdi Malek al-Kottab.
[3] The British Iranologist Edward Granville Browne considered the French poet Paul Verlaine to be the European counterpart of Yaghma.
[4] Yaghma also composed poetry in his native Khuri,[1] a non-Persian Western Iranian vernacular spoken in Khur and its surroundings.