In 1903 he returned to Barcelona to serve in the financial department of the
City Council of Barcelona. In 1907 he wrote
Memoria y proyecto de contrato con el Banco Hispano Colonial with mayor Idelfons Sunyol. He was a founding member of the
Institut d’Estudis Catalans on June 18, 1907 in the History and Arqueology section, and later in 1911 in the Science section. In 1901 he was named president of the
Republican Nationalist Federal Union and became director of
El Poble Català. He was elected to the City Council of Barcelona in 1909 and in 1910 and 1914 he became a member at the
Spanish parliament. In 1914 he inspired the Sant Gervasi pact between RNFU and Lerroux's
Radical Republican Party. Because of this failure he left active politics for a long period. In 1916 he started working as a lawyer and held conferences in Madrid. He also worked as a secretary for the Bank of Catalonia. He dedicated his efforts to literature during
Primo de Rivera's dictatorship, and collaborated with publications including
La Humanitat and
Revista de Catalunya. He served as president of the Ateneu Barcelonès from 1928 to 1930. He returned to politics with the establishment of the
Second Spanish Republic. Due to his legal and political experience and prestige, Francesc Macià added him to the drafting commission of the Estatut de Núria, and in 1933 he appointed him counselor of Justice and Law. He was elected member of parliament for
Esquerra Republicana de Catalunya (within the Front d’Esquerres) in the general elections of 1936, and served as General Museum Commissioner of the
Generalitat de Catalunya during the
Spanish civil war. At the end of the war, he migrated to Buenos Aires with his family, where he died shortly after. == Personal life ==