Reyes-Patria was military commander of Ocaña, Santa Marta, and La Guajira, and governor of Riohacha between 1821 and 1824, governor of Casanare in 1828 and fought for the federal cause in the Colombian civil wars of 1840 , 1851 , 1854 and 1860.