The defense of the city had to be put in order in a hurry. Orphans were forced to cooperate in raising the city walls. Polders around the city were flooded and seven small fortresses were built on the access roads. By the autumn of 1673 the danger had abated and in 1674 the war was over. Amsterdam had crawled through the eye of the needle.