Son of Colonel Francisco de Albear y Hernández, governor of the Morro Castle of Havana he was sent to study in mainland Spain and graduated in 1839 from the Military Engineering School of Guadalajara, Spain, with the rank of lieutenant. He was assigned to the Corps of Engineers of Cuba in 1845. Eventually, he reached the rank of brigadier general of the Royal Corps of Engineers, being in charge of over 182 projects in Cuba. He also was involved in scientific research, and was member of various scientific institutions among which: the Royal Academy of Sciences of Madrid (Spanish Royal Academy of Sciences ) (corresponding member), the Royal Geographic Society of Spain (Real Sociedad Geográfica de España) (founding member), the Scientific Society of Brussels (Société Scientifique de Bruxelles) the Royal Economic Society of the Friends of the Country of Havana (Sociedad Económica de los Amigos del País de la Habana) and the Royal Academy of Medical, Physical and Natural Sciences of Havana (Real Academia de Ciencias Médicas, Físicas y Naturales de La Habana), being vicepresident of the latter.
