It was part of medieval Poland and the Duchy of Pomerania after it split off from Poland during the fragmentation of the realm in the mid-12th century. The town developed as a settlement in the vicinity of the stronghold in the 12th century. Dobrzany, then called Jacobshagen, was granted town rights at the latest in 1336, when it came into the possession of the Pomeranian family of Steglitz, vassals of the dukes of Szczecin.
It formed part of medieval Poland and the Duchy of Pomerania after splitting off from Poland in the mid-12th century. The town emerged as a settlement near a fortress in the 12th century. Dobrzany, then known as Jacobshagen, received municipal rights by 1336 when it was acquired by the Steglitz family, who were subject to the dukes of Szczecin.