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:Linderhof is the smallest of the three palaces built by King Ludwig II of Bavaria and the only one which he lived to see completed.
Ludwig II, who was crowned king in 1864, began his building activities in 1867-1868 by redesigning his rooms in the Munich Residenz and laying the foundation stone of Neuschwanstein Castle. In 1868 he was already making his first plans for Linderhof. However, neither the palace modelled on Versailles that was to be sited on the floor of the valley nor the large Byzantine palace envisaged by Ludwig II were ever built.
Instead, the new building developed around the forester's house belonging to his father Maximilian II, which was located in the open space in front of the present palace and was used by the king when crown prince on hunting expeditions with his father.