On 12 July 1410, the undefended castle was captured by the Polish forces on their way into the interior of the State of the Teutonic Order.
At the time of the Hunger War of 1414 the castle was put under siege by the Polish knights and taken after eight days on the 6th of July.
In 1454 the castle was occupied by the Prussian Union and in February 1455 was taken by the Czech army led by Jan Kolda ze Zampachu, who had repulsed an attack an by the forces of the Teutonic Knights on 28 April.
In 1945, during the Second World War, the Soviet army bombarded the castle.
In the aftermath of the Potsdam Conference, the area was ceded to Poland and the German name of Neidenburg was changed to Nidzica; much of the castle remained in ruins until reconstruction between 1961 and 1965.