Nelson Mandela has joined anti-apartheid and African nationalist parties in his youth. This was in response to a feeling of alienation thanks to the politics of segregation and institutionalized racism in British South Africa.
He was influenced by Marxist ideals and was involved in non-violent movements after South African Communist Party. However by the 1960s he had actively co-founded and lead a rebel guerrilla resistance against the government.
Eventually, Nelson Mandela was captured and spent 27 years in jail.