Agha Mohammad Khan Qajar, also known by his regnal name of Agha Mohammad Shah, was the founder of the Qajar dynasty of Iran, ruling as Shah from 1789 to 1797.