sentences:  In 1568, John Frederick, Duke of Pomerania and bishop of Cammin, started constructing a residence, finished by his successor Casimir VI of Pomerania in 1582.After the 1637 death of the last Pomeranian duke, Bogislaw XIV, the city passed to his cousin, Bishop Ernst Bogislaw von Croÿ of Kammin.Occupied by Swedish troops during the Thirty Years' War in 1637, some of the city's inhabitants sought refuge in nearby Poland.