The Namibian Constitution was adopted in February 1990. It incorporated protection for human rights and compensation for state expropriations of private property and established an independent judiciary, legislature, and an executive presidency (the constituent assembly became the national assembly). The country officially became independent on 21 March 1990. Sam Nujoma was sworn in as the first President of Namibia at a ceremony attended by Nelson Mandela of South Africa (who had been released from prison the previous month) and representatives from 147 countries, including 20 heads of state. In 1994, following the first multiracial elections in South Africa, that country ceded Walvis Bay to Namibia.