Shortly after the events of 1523 in Strängnäs, letters patent were issued to Lübeck and its allied Hanseatic cities, who now were freed from tolls when trading in Sweden. An agreement, designed by Lübeck negotiators, was made with the Danish defenders in Stockholm. On 17 June the rebels could enter the capital city. At Midsummer, a grand entrance of king Gustav was arranged at Söderport, the southern gate of Stockholm. Celebrations followed, including a mass of thanksgiving in Storkyrkan (also known as Stockholm Cathedral) led by Peder Jakobsson. Gustav could now install himself in the Tre Kronor palace.