In addition to his writing, Unamuno played an important role in the intellectual life of Spain. He served as rector of the University of Salamanca for two periods: from 1900 to 1924 and 1930 to 1936, during a time of great social and political upheaval. During the 1910s and 1920s, he became one of the most passionate advocates of Spanish liberalism. Unamuno linked his liberalism with his hometown of Bilbao, which, through its commerce and connection with the civilized world, Unamuno believed had developed an individualism and independent outlook in stark contrast to the narrow-mindedness of Carlist traditionalism. When in 1912 José Canalejas was assassinated by an anarchist, he blamed it on the fact that Spain lacked a "true liberal democratic party" and in 1914 denounced the large property owners for their negligence and ignorance. Along with many other Spanish writers and intellectuals, such as Benito Pérez Galdós, he was an outspoken supporter of the Allied cause during the First World War despite Spain's official neutrality. Unamuno viewed the war as a crusade not just against the bellicose authoritarianism of the Germans, but against their sympathizers in Spain, and intensified his attacks on Alfonso XIII and the Spanish monarchy.