Bahrain's Prince Khalifa bin Salman al-Khalifa, the world's longest-serving prime minister who had held the post since independence in 1971, died Wednesday at the age of 84, state media announced.

Prince Khalifa was a controversial figure during his five decades in office -- and deeply unpopular with the Sunni-ruled kingdom's Shiite population.

When Shiite-led protesters occupied Manama's Pearl Square for a month in 2011, before being driven out by Saudi-backed security forces, their main demand was for Khalifa to step down.

He played a key role in Bahrain's political and economic affairs, including setting the stage for a referendum that put paid to the Shah of Iran's claims to the tiny Gulf archipelago.

But the prime minister, who was accused by dissidents of opposing reforms and cracking down on activists, adopted a lower profile in recent years as his age advanced and as Crown Prince Salman played a more prominent role.

Prince Khalifa died at the Mayo Clinic Hospital in the United States, the official Bahrain News Agency said.

The burial will take place after his remains have been transported home, and in line with coronavirus restrictions only a limited number of relatives will attend.

Bahrain's Prime Minister Prince Khalifa bin Salman al-Khalifa, who has died at the age of 84, was a controversial figure who was deeply unpopular with the Sunni-ruled kingdom's Shiite majority
Bahrain's Prime Minister Prince Khalifa bin Salman al-Khalifa, who has died at the age of 84, was a controversial figure who was deeply unpopular with the Sunni-ruled kingdom's Shiite majority AFP / MOHAMMED AL-SHAIKH

The country will hold a week of official mourning, during which flags will be flown at half-mast. Government ministries and departments will be closed for three days.

Gulf leaders paid tribute, hailing the veteran leader's long career "that has shaped Bahrain's recent history", according to Dubai ruler Sheikh Mohammed bin Rashid Al-Maktoum.

Born on November 24, 1935, Prince Khalifa began to attend his father's royal court at the age of seven along with his elder brother, Prince Issa.

He was named in 1970 as the head of the state council, the executive branch of government which became the council of ministers after independence from Britain.

He conducted difficult negotiations with the Shah of Iran, Mohammad Reza Pahlavi, before independence over Shiite Iran's claims to Bahrain's chain of islands.

Seen here with then US secretary of state Condoleezza Rice in 2008, Prince Khalifa cultivated close ties with Washington during his five decades as Bahraini prime minister
Seen here with then US secretary of state Condoleezza Rice in 2008, Prince Khalifa cultivated close ties with Washington during his five decades as Bahraini prime minister AFP / Jim WATSON

A referendum to determine the country's future resulted in an overwhelming vote in favour of independence under the rule of the Sunni Al-Khalifa dynasty, despite the large Shiite population -- whose size is disputed by the government to this day.

After independence, Sheikh Khalifa's government faced strong protests by leftist political groups, which demanded the legalisation of trade unions, resulting in large-scale arrests.

In 1972, elections were held for a constituent assembly which drafted Bahrain's first constitution the following year.

The first parliamentary elections were held in 1973, but Sheikh Khalifa's government dissolved the chamber two years later after it refused to pass a state security law giving the government wide powers of arrest and detention without trial.

Political unrest flared again in the early 1980s, and in late 1981 the government announced it had foiled an Iranian-backed coup attempt.

Prince Khalifa strove for many years to establish Bahrain as a regional financial hub. Unlike other Gulf states, the kingdom has only modest oil resources.

Working closely with his brother, the late emir Sheikh Issa bin Salman al-Khalifa, he favoured strong ties with Washington.

Ties have since continued to grow, with Bahrain now hosting the US Navy's Fifth Fleet as one of Washington's most trusted allies in the region.

Following Iraq's 1990 invasion of Kuwait, Bahrain witnessed renewed pro-democracy protests coupled with pressure from the United States and Britain.

Shiite-led demonstrations intensified in 1994, with protesters demanding the restoration of the elected parliament, the return of political exiles and a more equitable distribution of wealth.

The unrest, which claimed at least 38 lives, lasted until 1999, when King Hamad -- the son of Sheikh Issa -- ascended the throne and initiated reforms which turned Bahrain into a constitutional monarchy and reinstated the elected parliament in 2002.

But protesters were back on the street in February 2011, taking their cue from Arab Spring uprisings, demanding a "real" constitutional monarchy, with an elected premier to replace Prince Khalifa.

Although the government quelled the protests after one month, the country continues to face political repression, with several opposition chiefs behind bars. At least 89 people were killed in the unrest.