However, when the Prussian invasion of Holland and the subsequent fall of the city of Amsterdam on 10 October 1787 occurred, Dedel quietly took back his seat as "burgemeester". He managed to negotiate the limitation of the occupation of the city by the Prussians to the symbolic occupation of the Leiden Gate in the Walls of Amsterdam, and this earned him the gratitude of the citizenry.