Toronto is the largest city in Canada and the provincial capital of Ontario. It is located in Southern Ontario on the northwestern shore of Lake Ontario. A relatively modern city, Toronto's history dates back to the late-18th century, when its land was first purchased by the British monarchy from the Mississaugas of the New Credit. The settlement was later established as the Town of York and proclaimed as the new capital of Upper Canada by its lieutenant-governor, John Graves Simcoe. In 1834, York was incorporated as a city and renamed to its present name. The city was ransacked in the Battle of York during the War of 1812 and damaged in two great fires in 1849 and in 1904. Since its incorporation, Toronto has repeatedly expanded its borders through amalgamation with surrounding municipalities, most recently in 1998.