Despite the ouster of Iturbide, Tulancingo favored a centralist form of government, rather than the state-based federalist one. It would provide refuge to centralists such as Nicolas Bravo during most of the 19th century. Bravo's forces were attacked here by federalist forces under Vicente Guerrero in 1828. Guerrero was victorious and Bravo fled into exile. In 1853, dictator Santa Anna imprisoned federalist Melchor Ocampo in the city. Because the city was loyal to the centralist cause, Ocampo was not placed in prison, but rather allowed to walk the streets where the citizens would supervise him. This continued until Santa Anna decided to send Ocampo out of the country.