Many socialist political parties were formed during the 19th century and early part of the 20th century. During the decolonization movement in the 20th century, many armies fighting for independence planned to establish socialist countries.