During the War of 1812, British troops invaded Washington, D.C., in 1814. Matthews barricaded himself and others inside the sanctuary of St. Patrick's Church while most of the city's population fled. As the troops advanced to within two blocks of St. Patrick's, fire from surrounding buildings spread to the roof of the church. Matthews went to the roof to put out the fire, then persuaded General Robert Ross not to destroy the church.