Doğubayazıt (Bazîd, Պայազատ) is a town of Ağrı Province of Turkey, near the border with Iran. Its elevation is 1625 m. It is the seat of Doğubayazıt District. Its population is 80,061 (2021). Also known as Kurdava, the town was the capital of the self-declared Republic of Ararat, an independent Kurdish state centered in the Ağrı Province. For most of the periods described here, Doğubayazıt was a bigger and more important settlement than the present-day provincial capital Ağrı, not least because this is the Iranian border crossing. The area has had a rich history with monuments dating back to the time of the Kingdom of Urartu (over 2700 years ago). Before the Ottoman Empire the site was referred to by its Armenian name Daruynk. In the 4th century the Sasanians failed to capture the Armenian stronghold and royal treasury at Daroynk. Princes of the Bagratid dynasty of Armenia resided at Daroynk and rebuilt the fortress into its present configuration with multiple baileys and towers carefully integrated into the ascending rock outcrop. When King Gagik Arcruni reoccupied the fortress ca.922 A.D. it became the seat of a bishop. It was subsequently conquered and reconquered by Persians, Armenians, Byzantines, and Seljuks all of whom would have used the plain to rest and recoup during their passages across the mountains. Turkish peoples arrived in 1064, but were soon followed by the Mongols and further waves of Turks. The castle of Daroynk was repaired many times throughout this history, although it is now named after the Turkish warlord Celayırlı Şehzade Bayazıt Han who ordered one of the rebuildings (in 1374). Ultimately, the town was renamed Beyazit itself in the 16th century. From the time of the Safavids, the area was ruled by Turkic-speaking generals, later including the Ottoman general İshakpaşa, who built the palace that still bears his name. The town saw fighting in the Ottoman–Persian War (1821–23) when in 1821 commander-in-chief Abbas Mirza of Qajar Iran occupied the town, as well as when it was attacked by Russia later in 1856, and taken by the Russians during the Russo-Turkish War (1877–78).