The castle was built in the 15th century and used to be the residence of Prince Mazovian. The Royal Castle has undergone many renovations and was completely destroyed during World War II. From 1971 to 1988, the castle was rebuilt on its ruins and ruins.