Baghaberd ( ; also David Bek's Castle) is a 4th to 12th century Armenian fortress located along a ridge overlooking the Voghji River, 14 kilometers northwest of the village of Kapan in the Syunik Province of Armenia.