Ghalib started composing poetry at the age of 11. His first language was Urdu, but Persian and Turkish were also spoken at home. He received an education in Persian and Arabic at a young age. When Ghalib was in his early teens, a newly converted Muslim tourist from Iran (Abdus Samad, originally named Hormuzd, a Zoroastrian) came to Agra. He stayed at Ghalib's home for two years and taught him Persian, Arabic, philosophy, and logic.
Although Ghalib himself was far prouder of his poetic achievements in Persian, he is today more famous for his Urdu ghazals. Numerous elucidations of Ghalib's ghazal compilations have been written by Urdu scholars. The first such elucidation or Sharh was written by Ali Haider Nazm Tabatabai of Hyderabad during the rule of the last Nizam of Hyderabad. Before Ghalib, the ghazal was primarily an expression of anguished love; but Ghalib expressed philosophy, the travails and mysteries of life and wrote ghazals on many other subjects, vastly expanding the scope of the ghazal.[original research?] This work is considered[by whom?] to be his paramount contribution to Urdu poetry and literature.
In keeping with the conventions of the classical ghazal, in most of Ghalib's verses, the identity and the gender of the beloved is indeterminate. The critic/poet/writer Shamsur Rahman Faruqui explains that the convention of having the "idea" of a lover or beloved instead of an actual lover/beloved freed the poet-protagonist-lover from the demands of realism. Love poetry in Urdu from the last quarter of the seventeenth century onwards consists mostly of "poems about love" and not "love poems" in the Western sense of the term.
The first complete English translation of Ghalib's ghazals was Love Sonnets of Ghalib, written by Sarfaraz K. Niazi and published by Rupa & Co in India and Ferozsons in Pakistan. It contains complete Roman transliteration, explication and an extensive lexicon.