Baghaberd (Armenian: Բաղաբերդ; also David Bek's Castle) is a 4th to 12th century Armenian fortress located along a ridge overlooking the Voghji River, 14 kilometres (9 mi) northwest of the city of Kapan in the Syunik Province of Armenia.
According to Stepanos Orbelian's History of the Province of Syunik (Patmutyun Nahangin Sisakan), in the mid-4th century Prince Andovk, the hereditary lord of Syunik, attacked and plundered one of the cities of the Persian Sassanid King Shapur II (309-379) while the king was at war with the Huns.
King Shapur II was furious about the incident and took his armies to Syunik to defeat the prince.
Once the king's forces arrived at the fortress, Andovk and his men defeated three of Shapur's military units by rolling rocks down the cliffside upon them.
Baghaberd became the last capital of the Armenian Syunik kingdom after the destruction of the nearby city of Kapan by the Turks in the year 1103.