The State President of the Republic of South Africa was the head of state of South Africa from 1961 to 1994. The office was established when the country became a republic on 31 May 1961, outside the Commonwealth of Nations, and Queen Elizabeth II ceased to be Queen of South Africa. The position of Governor-General of South Africa was accordingly abolished. From 1961 to 1984, the post was largely ceremonial. After constitutional reforms enacted in 1983 and taking effect in 1984, the State President became an executive post, and its holder was both head of state and head of government.