After studying Primary and Secondary Education in Monforte de Lemos, he entered Valladolid University in 1820, where he combined his studies on Jurisprudence and Mathematics. From 1826 to 1829, he practised teaching in this University. In 1829, he enjoyed a scholarship of the Government to improve his knowledge on Physics and Mathematics at the Central College of Arts and Manufactures in Paris where he carried out important laboratory works and in the Physics cabinet. After his stay in Paris, where he suffered from a disease that caused him sight and hearing problems, he left his professorship at Valladolid University and worked at the Secretaría of the Home Office for some time. He also filled the office of treasury official in Cuba, where he stayed until 1846.
These are some of his most important works as a result of his research works and extense knowledge on Mathematics, Physics, Geology and Numismatics: Memoria sobre la reforma del sistema monetario de la isla de Cuba (1839), Informe fiscal sobre el fomento de la población blanca de la isla de Cuba y abolición gradual de la esclavitud; obstáculos que a ella se oponen y reformas que deben hacerse en todos los ramos de su legislación y administración (1844), Proyecto de ley sobre la uniformidad y reforma del sistema métrico y monetario de España (1847), Esai sur les systèmes métriques et monétaires de anciens peuples, despuis les premiers temps historiques jusqu'á la fin du kalifat d'Orient (1859), La cuestión de Oro reducida a sus justos límites y medios de sentar el sistema monetario sobre una sólida e inalterable base (1861), La crisis monetaria española considerada en sus causas, sus efectos y su remedio (1866), La cuádruple alianza monetaria, considerada en su origen, objeto, ventajas e inconvenientes, e imposibilidad actual de su adopción en España (1867), Tabla de Logaritmos vulgares, etc.
In 1861, he became a member of the Spanish Academy of History. Besides, he was a member of the Galician Academy of Mathematical, Physical and Natural Sciences and other foreign academies and scientific institutes such as the Imperial Institute of France or the French Academy of Inscriptions and Fine Arts. He held the Cross of Isabel, the Catholic Queen and the distinction 'Caballero de la Orden de Carlos III'.