 By 1208 the important Daugava trading posts of Salaspils (Holme), Koknese (Kokenhusen) and Sēlpils Castle (Selburg) had been taken over as a result of Albert's energetic campaigning.In the same year, the rulers of the Latgalian counties Tālava, Satekle, and Autine established military alliances with the Order, and construction began on both Cēsis Castle and a stone Koknese Castle, where the Daugava and Pērse rivers meet, replacing the wooden castle of Latgalians.In 1209 Albert, leading the forces of the Order, captured the capital of the Latgalian Principality of Jersika, and took the wife of the ruler Visvaldis captive.