Koknese Castle (Latvian: Kokneses pils) is a complex in Koknese, Latvia, dating from the 13th century. The castle was situated on a high bluff overlooking the Daugava river valley. In 1965 a hydroelectric dam was built downriver, creating a reservoir that partially submerged the castle and flooded the surrounding valley.