There was originally a Roman castellum (Castellum Laurum) in Woerden, as part of the limes of the Roman Empire and thus part of the defense lines of the northern border of the Roman Empire. The first castellum was built in the 40s AD, and was destroyed in 69 AD during the Batavian rebellion. In 70 AD the castellum was rebuilt, and the Romans remained until 402 AD, with an interruption lasting from about 275-300 AD. The Castellum was located at the present site of the medieval Petruschurch and surrounding church yard. During construction work on a new underground parking facility in the city center of Woerden, the remains of numerous old Roman buildings and a Roman cargo ship were found.
The current castle was built in around 1160 by bishop Godfrey van Rhenen. Due to its strategic location on the border between the County of Holland and the Bishopric of Utrecht, various wars have been fought in and around Woerden. In 1410 John III, Duke of Bavaria-Straubing reconstructed the castle.
Until the 19th century the castle was used as a prison. There's even a pit prison in the northwest tower, which was used for unruly prisoners. In the 20th century the castle was part of military barracks and used for storage of all kinds of goods but poorly maintained. This caused severe decay. Today it is restored as a restaurant.
References:The Château du Lude is one of the many great châteaux of the Loire Valley in France. Le Lude is the most northerly château of the Loire Valley and one of the last important historic castles in France, still inhabited by the same family for the last 260 years. The château is testimony to four centuries of French architecture, as a stronghold transformed into an elegant house during the Renaissance and the 18th century. The monument is located in the valley of Le Loir. Its gardens have evolved throughout the centuries.