In the beginning of the 18th century, Culemborg effectively lost its independence as it was incorporated into the Nijmegen Quarter, although it regained some sovereign rights. Later, it was gifted to stadholder Willem IV. To this day, the Dutch king Willem-Alexander remains count of Culemborg. In 1795, the city was occupied by French forces, who left the castle in such a despicable state it was demolished after the French had left. A few years later it was completely incorporated in the Bataafse Republiek, and losing its sovereign rights.