Question: who was president when the british burned down the white house during the war of 1812
Answer: President James Madison , military officials , and his government fled the city in the wake of the British victory at the Battle of Bladensburg .