University of Havana
He returned to Cuba from Venezuela in 1818 and then registered at the University of Havana at the young age of 14. He did not stay at the University of Havana long; he continued his career the following year in Mexico. The death of his father, José Francisco Heredia, in 1820 caused his son José María to return to Cuba the following year from Mexico.