Leiden’s canals were incorporated into the city plan as early as the seventeenth century. The outer canal was dug to protect the city. The historic inner city is surrounded by a six kilometer moat. Leiden’s moats are among the biggest city fortifications in Europe with an intact structure. Leiden’s canals run through the city and are lined by docks on which trees have grown, to anchor boats.