A first attempt to take Stralsund was made in 1711, when the allies closed in on the town. Swedish relief forced the coalition to withdraw from the fortifications, whereupon the besieging armies drew a wider ring along the lines of the Recknitz and Peene rivers. Magnus Stenbock's victory at Gadebusch for a short time distracted the allies, but after Stenbock's pursuit and subsequent defeat, Prussia as well as Hanover, ruled in personal union with Great Britain, joined the anti-Swedish alliance.