 After the Treaty of Ghent, which ended the war, Britain and the United States in 1817 signed a separate pact, known as the Rush–Bagot Treaty, to limit the number and strength of warships that the parties could maintain on the Lakes.On Lake Ontario, Britain and the United States could keep in commission one vessel each, of no more than 100 tons (bm) and armed with one 18-pounder gun.The parties undertook not to build other armed ships, and to dismantle those already built.