After World War 2, many European colonies gained independence in a process known as decolonization. Key factors included the United Nations supporting independence, the weakened state of European empires after the war, and nationalist leaders like Gandhi demanding freedom. Decolonization was sometimes peaceful but often violent, as seen in Algeria and Kenya. India gained independence in 1947 after Gandhi's non-violent protests, though the country was partitioned into India and Pakistan. Many newly independent nations struggled with problems like arbitrary borders and economic dependence on outsiders.