The son of José María Ríos Moreiro and Maria Cristina Garcia Martin, he was taught by his parents, who were teachers.
He became professor of mathematical analysis at the University of Valencia, as well as in Valladolid and Madrid.