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.
At some point in the mid-12th century, Dobrzany became part of medieval Poland and the Duchy of Pomerania after breaking away from Poland. The town developed as a settlement around a stronghold in the 12th century. Dobrzany, previously called Jacobshagen, was granted town status by 1336 when it was taken over by the Steglitz family, who were vassals of the dukes of Szczecin.