The Burning of Washington was a British invasion of Washington, D. C. , the capital of the United States, during the Battle of Bladensburg in the War of 1812.