Answer
Before becoming president, Samora Machel was a military commander. He played a crucial role in the Mozambican War of Independence, leading the Mozambique Liberation Front (FRELIMO) against Portuguese colonial rule. Machel's military experience and leadership skills were instrumental in FRELIMO's victory and the establishment of an independent Mozambique in 1975.