Complex sentence: The city adopted Magdeburg rights in 1261, and joined the Hanseatic League in 1387.
Split into simpler sentences: The city adopted Magdeburg rights in 1261. City joined the Hanseatic League in 1387.