American troops in the War of 1812 invaded Upper Canada across the Niagara River and the Detroit River, but were defeated and pushed back by the British, Canadian fencibles and militias, and First Nations warriors. However, the Americans eventually gained control of Lake Erie and Lake Ontario. The 1813 Battle of York saw American troops defeat the garrison at the Upper Canada capital of York. The Americans looted the town and burned the Upper Canada Parliament Buildings during their brief occupation. The British would burn the American capital of Washington, D.C. in 1814.