Involved in Catalan politics, he was Minister of Justice of Catalonia in the Government of Lluís Companys. After the events of 6 October 1934, he was made prisoner along with other members of the Catalan Government on the ship "Uruguay", which aroused international complaints. After the Spanish Civil War he went into exile in Mexico, together with many intellectuals. Subsequently, he suffered from a vilifying campaign at the University of Barcelona. He acquired Mexican nationality in 1971.