Colonialism ended through a combination of factors, including resistance movements by colonized peoples, changing international attitudes towards imperialism, and the financial burdens of maintaining colonies. This led to decolonization processes throughout the 20th century, resulting in independence for many countries but also leaving challenges like political instability and economic difficulties.