Managua is the capital city of Nicaragua as well as the department and municipality by the same name. It is the largest city in Nicaragua in terms of population and geographic size. Located on the southwestern shore of Lake Xolotlán or Lake Managua, the city was declared the national capital in 1852. Prior to its inception as the capital city, the title had alternated between the cities of León and Granada.