Socialism is an economic and political system that advocates for collective or governmental ownership and administration of the means of production and distribution of goods. This ideology emerged as a response to the inequalities generated by capitalism, promoting social welfare and aiming to reduce class distinctions.