Before the arrival of the Teutonic Knights, Koknese was the site of a wooden hill fort inhabited by the Balts. In 1209 Bishop Albert of Riga ordered the construction of a stone castle at the site, naming it Kokenhusen. For the first 50 years of its existence, Koknese was solely used as a defensive fort, but by 1277, Koknese had enough population to receive city rights. Koknese also became a member of the Hanseatic League thanks to its strategic location on the Daugava trade route.
The castle was heavily contested between Polish, Swedish and Russian forces in the 16th and 17th centuries. It changed hands many times, while the native inhabitants endured periodic slaughter, capture, and famine. In 1701, during the Great Northern War, Koknese was finally blown up by retreating forces to avoid the strategic castle falling into advancing Russian hands. The castle was never rebuilt and fell to ruin.
In 1900, a park was established around the castle ruins, and Koknese became a popular summer resort. The area was known for its scenic waterfalls, cliffs, and look-outs. In 1965, the Soviet government built Pļaviņas Hydro Power Plant in the town of Aizkraukle. The reservoir flooded the entire length of the Daugava to Pļaviņas. Koknese Castle, once sitting atop a high bluff, was placed at the river's edge, while the scenic Daugava valley was submerged.
References:The Château de Foix dominates the town of Foix. An important tourist site, it is known as a centre of the Cathars. Built on an older 7th-century fortification, the castle is known from 987. In 1002, it was mentioned in the will of Roger I, Count of Carcassonne, who bequeathed the fortress to his youngest child, Bernard. In effect, the family ruling over the region were installed here which allowed them to control access to the upper Ariège valley and to keep surveillance from this strategic point over the lower land, protected behind impregnable walls.
In 1034, the castle became capital of the County of Foix and played a decisive role in medieval military history. During the two following centuries, the castle was home to Counts with shining personalities who became the soul of the Occitan resistance during the crusade against the Albigensians.