The British granted Fiji independence in 1970. Democratic rule was interrupted by two military coups in 1987 precipitated by a growing perception that the government was dominated by the Indo-Fijian (Indian) community. The second 1987 coup saw both the Fijian monarchy and the Governor General replaced by a non-executive president and the name of the country changed from ''Dominion of Fiji'' to ''Republic of Fiji'' and then in 1997 to ''Republic of the Fiji Islands''. The two coups and the accompanying civil unrest contributed to heavy Indo-Fijian emigration; the resulting population loss resulted in economic difficulties and ensured that Melanesians became the majority.