In 1885 he returned to Madrid and opened a private practice, and in 1902 was appointed to the first chair of experimental psychology in Spain.
He resumed his career in Madrid in 1885, setting up his own private medical office, before being appointed to the inaugural position of experimental psychology professor in Spain in 1902.