After graduating from the University of Oviedo in 1807, he moved to Madrid, where he joined the army.
Po absolvovaní univerzity v Oviede v roku 1807 sa presťahoval do Madridu, kde vstúpil do armády.