There have been sixteen prime ministers of Sri Lanka since the creation of the position in 1947, prior to the independence of the country. The prime minister of Ceylon was the head of the government until 1972. In 1972, the country was renamed as the Free, Sovereign and Independent Republic of Sri Lanka, and the position was known as the prime minister of Sri Lanka from then onwards. The prime minister also held the unified Ministry of External Affairs and Defence until 1977, when the government of J. R. Jayewardene split the ministry into two ministries, forming the Ministry of Defence and the Ministry of Foreign Affairs.