French West Africa was a federation of colonies (seven or eight, as boundaries changed) governed from Dakar. Only the inhabitants of four old coastal towns in Senegal were French citizens. Everyone else was a subject under the indigénat, a legal code that let officials jail people without trial, and owed head taxes and unpaid forced labor on roads, railways and plantations producing export crops such as peanuts and cotton.
World War I sharpened the contradiction between France's rhetoric of a Civilizing Mission and its practice. France recruited roughly 200,000 tirailleurs sénégalais, most of them from French West Africa, for the trenches (Colonial Troops in World War I). Recruitment drives provoked flight across borders and armed revolts, the largest in the Volta-Bani region in 1915–1916. Blaise Diagne, elected in 1914 as the first Black African deputy in the French parliament, helped recruit soldiers in exchange for promises of expanded rights that were mostly not kept.
Between the wars resistance took newer, urban forms. Veterans returned with wider horizons and pension grievances. Railway and dock workers, concentrated along the Dakar–Niger line, struck repeatedly over pay and status; during a strike at Thiès on 27 September 1938 colonial troops fired on a crowd, killing six people and wounding dozens. Market traders and townspeople protested taxes, as in Porto-Novo in Dahomey in 1923. An African-owned press criticized officials, and West Africans living in Paris, such as the war veteran Lamine Senghor, joined communist and Pan-African organizations that denounced New Imperialism outright. The Pan-African Congress of 1919, presided over by Diagne, met in Paris itself, and the Negritude Movement movement of the 1930s asserted the worth of African culture against assimilation.
France kept control throughout; the brief reforms of the Popular Front government in 1936–1937, which allowed some trade unions, were limited. But the unions, veterans' groups and political networks formed in these years carried on after World War II. A months-long railway strike in 1947–1948 won major concessions, and leaders such as Léopold Sédar Senghor negotiated the Independence of French West Africa by 1960.