Following the lift of the interdiction in 1964, and the improvement of relationship with the Catholic Church in 1969, Dom Mintoff was elected as Prime Minister when Labour won the 1971 general election and immediately set out to re-negotiate the post-Independence military and financial agreements with the United Kingdom. The government also undertook socialist-style nationalization programmes, often in breach of property rights, import substitution schemes, and the expansion of the public sector and the welfare state. Employment laws were revised with gender equality being introduced in salary pay. In the case of civil law, civil (non-religious) marriage was introduced and sodomy, homosexuality and adultery were decriminalised. Through a package of constitutional reforms agreed to with the opposition party, Malta declared itself a republic in 1974. In 1979, the last of the British Naval Troops left Malta.