In 1843 he returned to Spain as professor of Arabic at the University of Madrid, a post he held until 1881, when he was made director of public instruction.
In 1843 he returned to Spain as professor of Arabic at the University of Madrid, a post he held until 1871. He entered in politics in 1881, when he was made director of public instruction.