Political career (1930–1950)
From 1930 Rodríguez Castelao's political activism intensifies even further. His life and work always revolved around politics and his Galician nationalist ideas. In his book Sempre en Galiza he states that all his works, talent and efforts would always be used for the profit of the Galician cause.
In 1930, he founded the Galician Republican Federation at Lestrove Palace and participated in the meetings of the Galician Nationalist Republican Party and in the assembly for the Federal State of Galicia. The next year he published the book Nós and became the official representative of the Galicianist Party to the Cortes Generales. In 1934, he published Retrincos, Os dous de sempre and the a re-edition of Cousas.
He became a member of the Royal Galician Academy in 1933, and shortly after that, in 1935, he was forced into exile by the Spanish government to the Spanish city of Badajoz, in Extremadura, where he worked as a civil servant. It was then where he began to write what would become his key work, Sempre en Galiza. In 1936 he gained a seat at the Spanish parliament, this time representing the Popular Front coalition, which included the Galicianist Party.
The Spanish civil war began whilst Castelao was in Madrid presenting the results of the referendum for the Galician Statute of Autonomy, which had been approved by 98 per cent of voters, and in which Castelao had played a role, together with his personal friend Alexandre Bóveda. During the war he organised the Galician militias in collaboration with the Spanish Communist Party and declared his support to the government of the Spanish Republic. As the Nationalist troops advanced Castelao fled to Valencia – where he still had time to publish Galicia Martir and Atila en Galicia – and later moved to Barcelona.
In 1938, he was sent by the Spanish government to the Soviet Union, the United States and Cuba, in order to obtain support for the Republic. From New York City he cruised to Buenos Aires, where in 1941 he performed for the first time the play Os vellos non deben de namorarse, Castelao's contribution to Galician theatre.
In 1944, while in Buenos Aires, he finished and published a work of Galician political theory: Sempre en Galiza (lit. "Always in Galicia"), which was in fact a compilation of three books (three parts) and a number of other texts. Sempre en Galiza has been considered one of the most advanced political texts of its time. Also in that year he became the first president of the Consello de Galiza, the Government of Galicia in exile. In 1945, together with Catalan and Basque intellectuals in exile, he founded the magazine Galeuzca as an evocation of the political alliance of 1933 between Galicia, Catalonia and the Basque Country. In 1946 he was appointed as minister without portfolio in the Spanish Republican government in exile led by José Giral, while living in Paris. In 1947, back in Buenos Aires and after being diagnosed with lung cancer, he published As cruces de pedra na Galiza.
Castelao died on 7 January 1950 at the hospital of the Centro Gallego in Buenos Aires. The Argentine Senate and the City of Buenos Aires erected monuments to honour him. Since then, most of his work has been translated and published into other languages. In 1984, Castelao's remains were brought back to Galicia and he was buried at the Panteón de Galegos Ilustres ("Pantheon of Illustrious Galicians"), Bonaval, in the capital city of Santiago de Compostela.