The Pahlavi dynasty is an Iranian royal dynasty that was the last to rule Iran before the country's monarchy was overthrown in the Iranian Revolution in 1979. It was founded in 1925 by Reza Shah Pahlavi, born Reza Khan, a non-aristocratic Iranian soldier of Mazanderani origin, who took on the name of the Pahlavi scripts of the Middle Persian language from the Sasanian Empire of pre-Islamic Iran. The dynasty largely espoused this form of Iranian nationalism rooted in the pre-Islamic era during its time in power, especially under its last Shah Mohammad Reza Pahlavi.