For most of the 1900s, Uruguay was one of the most flourishing nations in Latin America. President José Batlle y Ordóñez raised Uruguay's living standard to nearly match that of European industrialized nations by creating a complex social welfare system, after the civil war that preceded his presidency. During both world wars, Uruguay was considered the "Switzerland of the Americas" as it made the majority of its profits through exporting agricultural goods.