Spanish literature
He was professor of Spanish literature at the University of Madrid (1878–98) and director of the Biblioteca Nacional de España (1898–1912).