He was extensively educated at home by private tutors in traditional subjects such as poetry, literature, mathematics, Arabic, and religion, along with modern sciences and Western languages. In 1878, at age 21, he continued his education at the Austrian Military Academy in Tehran, where he distinguished himself as a soldier and strategist.