The ramparts of Quebec City is a city wall that surrounds the western end of Old Quebec's Upper Town in Quebec City, Quebec, Canada. The ramparts date back to the 17th century, with the ramparts having undergone a succession of modifications and improvements throughout its history. The city walls extends 4.6 kilometres (2.9 mi), with the southern portions of the ramparts forming a part of the Citadelle of Quebec.