XI of Sweden with Bremen-Verden, and with the neighbouring Brunswick and Lunenburg (Celle line) being paralysed by succession quarrels and France being not opposed, Sweden started from its Bremen-Verden the Second Bremian War (1665–1666). The siege of the city by the Swedes under Carl Gustaf Wrangel brought Brandenburg-Prussia, Brunswick and Lunenburg (Celle), Denmark-Norway, Leopold I and the United Netherlands to the scene, all in favour of the city, with Brandenburgian, Brunswickian, Danish and Dutch troops at Bremen-Verden's borders ready to invade. So Sweden had to sign on 15 November 1666 the Treaty of Habenhausen, obliging it to destroy the fortresses built close to Bremen while banning the Free City of Bremen from sending its representative to the Diet of the Lower Saxon Circle. From Bremen-Verden, no further Swedish attempts to violently capture the city sprang out. Asked in 1700 what to do by Charles XII of Sweden, Bremen-Verden's General Government recommended to concede Bremen's status as a Free Imperial City. A Danish attempt to conquer Bremen-Verden during the Dano-Swedish War (1657–1658) failed. But the Danish threat to Bremen-Verden turned more virulent in 1667. In that year the local branch of the House of Oldenburg ruling in the County of Oldenburg, adjacent to Bremen-Verden's western border, died out with Anton Günther, Count of Oldenburg and Delmenhorst. Therefore, Christian Albert, Duke of Schleswig and Holstein at Gottorp inherited the county, but ceded it to his father-in-law Frederick III, King of Denmark and Norway, Administrator of the Prince-Archbishopric of Bremen and the Prince-Bishopric of Verden from 1635 until he had been expelled by the Swedish occupants in 1645. So the Danes ruled territories clung around Bremen-Verden at its northern and western border. Both powers entered into a dangerous competition for the exclusive opportunity to levy the lucrative tolls from ships heading for Hamburg and Bremen, with the former at that time being a ducal Bremian and the latter a comital Oldenburgian privilege. After a stay in Hamburg (1666–1668) with the administrators of her Swedish estates, and his son , in order to reorganise her revenues, in 1668 Christina of Sweden (after her Catholic conversion in 1655 Christina Alexandra), stopped by in Stade on her way home to Rome. The rise of Swedish centralisation and absolutism found its way partially into Bremen-Verden's practise. Bremen-Verden wasn't streamlined as to its jurisdiction and its military system, but the latter strictly subjected to Stockholms generalty. Especially in