In the small town of Pļaviņas, at the place where the Skanstupīte River flows into the Daugava (Friendship Park), there are the remnants of a set of small and low fortifications known as the Swedish bastions. This was a place of military and political importance, because here was the place where the boundaries of Vidzeme (under Swedish rule), Latgale (under Polish rule), and the Duchy of Kurzeme (on the opposite side of the river) all came together. In 1625, the Swedes were defeated by the Poles here, and Swedish King Gustav Adolf almost lost his life. Medieval bastions of this kind can be seen in some other places of Latvia, as well.