Namibia's President Hage Geingob has died at the age of 82 while receiving medical treatment at a hospital in the capital, Windhoek. A veteran of the country's independence struggle, Geingob had been diagnosed with cancer and revealed the details to the public last month. He died early on Sunday with his wife and children by his side, Vice-President Nangolo Mbumba announced. Namibia "has lost... a distinguished servant of the people", he said. He was first sworn-in as president in 2015, but had served in top political positions since independence in 1990. According to the constitution, Mbumba will now act as president as there was less than a year left of Geingob's second term in office. Presidential and parliamentary elections had already been scheduled for November. The exact cause of the president's death was not given but last month he underwent "a two-day novel treatment for cancerous cells" in the US before flying back home on Jan. 31, his office had said. On Namibian radio, people have been paying tribute to someone they described as a visionary as well as a jovial man, who was able to share a joke. Leaders from around the world have been sending condolence messages with many talking about Geingob's efforts to ensure his country's freedom. Among them has been Cyril Ramaphosa, president of neighboring South Africa, who described him as "a towering veteran of Namibia's liberation from colonialism and apartheid". Geinbob, a tall man with a deep, gravelly voice and a commanding presence was a long-serving member of the Swapo party. It led the movement against apartheid South Africa, which had effectively annexed the country, then known as South West Africa, and introduced its system of legalized racism that excluded black people from political and economic power. Geinbob lived in exile for 27 years, spending time in Botswana, the US and the UK, where he studied for a PhD in politics. He came back to Namibia in 1989, a year before the country gained independence. "Looking back, the journey of building a new Namibia has been worthwhile," he wrote on social media in 2020 while sharing a picture of him kissing the ground on his return. "Even though we have made a lot of progress in developing our country, more work lies ahead to build an inclusive society." When Geingob first became president in 2015, he had already been the country's longest-serving prime minister — in the post for 12 years from 1990 and then again for a shorter stint in 2012. But going by results at the ballot box, his popularity had declined. In the 2014 election, he won a huge majority, taking 87% of the vote. But five years later that had fallen to 56%. Geingob's first term coincided with a stagnant economy and high levels of unemployment and poverty, according to the World Bank. His party also faced a number of corruption scandals during his time in office. This included what became known as "fishrot", where ministers and top officials were accused of taking bribes in exchange for the awarding of lucrative fishing quotas. By 2021, three-quarters of the population thought that the country was going in the wrong direction, a three-fold increase since 2014, according to independent polling organization Afrobarometer. Three decades after independence, the heroic narrative of Swapo having liberated the country was losing its appeal among a generation born after the event, long-time observer of Namibian politics Henning Melber wrote in 2021. Swapo, in power since independence, had chosen Netumbo Nandi-Ndaitwah as its presidential candidate for November's planned elections. She is currently the deputy prime minister, and will become the country's first female president if she wins. — BBC