 He was appointed as the director of the Barcelona Provincial School of Architecture in 1871.An admirer of Eugène Viollet-le-Duc, he passed on his passion for mediaeval architecture through his teaching work.His students included Lluís Domènech i Montaner and Antoni Gaudí, of whom he reputedly said, as he signed his degree, "I have approved either a madman or a genius".