After the collapse of the Durrani Empire in 1823, the Barakzai dynasty founded the Emirate of Afghanistan, transformed it into the Kingdom of Afghanistan in 1926, and ruled the country (with an interruption in 1929) until the last king, Mohammed Zahir Shah, was deposed in the 1973 coup d'état, led by his first cousin Mohammed Daoud Khan. Despite being part of the Barakzai dynasty, Daoud Khan departed from tradition and did not proclaim himself "Shah", instead abolished the monarchy and established the Republic of Afghanistan, with himself as President. The Republic lasted until the Saur Revolution in 1978.