Dybowski Castle was erected on the left bank of the Vistula by Władysław Jagiełło as the seat of the Polish starosts and a strategic military point to the enforcement of the traffic control on the Vistula and the Polish-Teutonic border. Its construction began probably around 1423-1425, but already in the first period it was rebuilt several times.