Āghā Moḥammad Khān Qājār (1742–1797; Persian: آغا محمد خان قاجار) was the founder of the Qajar dynasty of Iran, ruling from 1789 to 1797 as king (shah). He was originally chieftain of the Qoyunlu branch of the Qajar tribe. In 1789, Agha Mohammad Khan was enthroned as the king of Iran, but was not officially crowned as its king until March 1796.