all that Denmark got out of this war, that was [...] lost at Fontainebleau." The validity of the treaties of Westphalia (1648), Roskilde (1658) and Copenhagen (1660) was confirmed, and Christian Albrecht restored in Holstein-Gottorp. Lund The final settlement at Lund, signed on 16 September (O.S.) / 26 September 1679, detailed and amended Fontainebleau. French pressure assured that the terms of Fontainebleau were confirmed, as was Sweden's exemption from the Sound Dues. Besides areas in Skåneland, the Danish-occupied territories which were to be returned also included the Swedish port of Wismar in Mecklenburg and northern Swedish Pomerania with the isle of Rügen. Rügen was to be returned on 20 October 1679 (Article VI), while Wismar was to be returned only after Denmark had received the agreed-on contributions (Article VII). In addition to these openly proclaimed articles, the treaty included secret paragraphs negotiated by Johan Göransson Gyllenstierna. They outlined a strategy of mutual assistance, which Gyllenstierna understood was the only way the Scandinavian countries were able to compete with France and Brandenburg-Prussia. The alliance was to last ten years. Gyllenstierna had come to power during the war, and by 1679 controlled Sweden's foreign policy to a point that he was given "free hand" by Charles XI in negotiating the treaty. His goal was to free the resources bound by the continuous Dano-Swedish hostilities, assert common control of the Baltic Sea, advance to a more favourable commercial position with respect to the Dutch Republic, and be able to negotiate better terms with France with respect to military alliances. Yet, as Charles XI and other leading Swedish figures, he was also hostile towards Denmark–Norway, and had proposed to eliminate Denmark–Norway in a joint Franco-Swedish attack just prior to the negotiations. While his motives remain speculative, the secret alliance as laid out in the treaty included several co-operations in northern Germany, joint negotiations with France, and a joint position regarding the Baltic Sea trade. A defensive alliance was also concluded, but included in the public part of the treaty. The secret articles of Lund were revealed only in 1870. Consequences While Charles XI of Sweden married Ulrika Eleonora of Denmark and the conciliatory Gyllenstierna became governor of contested Scania in 1679, his death in 1680 left Bengt Oxenstierna in charge of Sweden's foreign relations. Oxenstierna reversed Gyllenstierna's policies, instead he started bending the terms of Lund already in his first year in office by