already had a small squadron of warships on Lake Ontario when the war began and had the initial advantage. The Americans established a Navy yard at Sackett's Harbor, New York, a port on Lake Ontario. Commodore Isaac Chauncey took charge of the thousands of sailors and shipwrights assigned there and recruited more from New York. They completed a warship (the corvette USS Madison) in 45 days. Ultimately, almost 3,000 men at the shipyard built 11 warships and many smaller boats and transports. Army forces were also stationed at Sackett's Harbor, where they camped out through the town, far surpassing the small population of 900. Officers were housed with families. Madison Barracks was later built at Sackett's Harbor. Having regained the advantage by their rapid building program, on 27 April 1813 Chauncey and Dearborn attacked York, the capital of Upper Canada. At the Battle of York, the outnumbered British regulars destroyed the fort and dockyard and retreated, leaving the militia to surrender the town. American soldiers set fire to the Legislature building, and looted and vandalized several government buildings and citizens' homes. On 25 May 1813, Fort Niagara and the American Lake Ontario squadron began bombarding Fort George. An American amphibious force assaulted Fort George on the northern end of the Niagara River on 27 May and captured it without serious losses. The British abandoned Fort Erie and headed towards Burlington Heights. The British position was close to collapsing in Upper Canada; the Iroquois considered changing sides and ignored a British appeal to come to their aid. However, the Americans did not pursue the retreating British forces until they had largely escaped and organized a counter-offensive at the Battle of Stoney Creek on 5 June. The British launched a surprise attack at 2 a.m., leading to confused fighting and a strategic British victory. The Americans pulled back to Forty Mile Creek rather than continue their advance into Upper Canada. At this point, the Six Nations of the Grand River began to come out to fight for the British as an American victory no longer seemed inevitable. The Iroquois ambushed an American patrol at Forty Mile Creek while the Royal Navy squadron based in Kingston sailed in and bombarded the American camp. General Dearborn retreated to Fort George, mistakenly believing that he was outnumbered and outgunned. British Brigadier General John Vincent was encouraged when about 800 Iroquois arrived to assist him. An