Several invasion attempts by American forces were also attempted at the Niagara Peninsula. On October 13, 1812, an American invasion attempt was prevented at the Battle of Queenston Heights; although the commander of British forces in Upper Canada, Major-General Isaac Brock, was killed during the battle. On April 27, 1813, American forces raided and briefly occupied York, the capital of Upper Canada. A month later, American forces captured Fort George prompting the British to retreat to the Burlington Heights. However, further advances into the peninsula by American forces were halted at the battles of Stoney Creek and Beaver Dams; prompting the Americans to eventual withdraw from the peninsula on December 10, 1813. An American invasion force advancing towards Montreal was also repulsed at the Battle of Chrysler's Farm on November 13, 1813.