Bailiffs, loyal to the old king Christian, were still holding castles in Finland, a part of Sweden at the time. During the summer and fall of 1523 they all surrendered. The next year, on 24 August 1524, Gustav arrived in Malmö in order to reach a settlement with Denmark - Norway and its king Frederick. The Treaty of Malmö (in Swedish: "Malmö recess") had both positive and negative sides to it, from king Gustav's perspective. The treaty meant that Denmark-Norway acknowledged the independence of Sweden. The hopes Gustav had carried of winning further provinces (Gotland and Blekinge) were however scuttled. The treaty marked the end of the Swedish War of Liberation.