According to legend the Polish voivode Piotr Włostowic of Dunin (1080–1153) had a fieldstone church built on the hill in the west of Lubin, where about 1230 a castellany and a village arose that until today is called the Old Town (Polish: Stary Lubin). The settlement in the Duchy of Głogów was first mentioned under the Old Polish name of Lubin in a 1267 deed by Pope Clement IV as a fiefdom of Trzebnica Abbey.