 Born in Tetela de Ocampo in the Sierra Norte de Puebla, Méndez worked in commerce and livestock until 1847.In that year, he enlisted in the army to fight the United States in the Mexican–American War.He continued in the army after the war, and on 15 December 1854 he was named commander of a battalion in the Puebla National Guard.