In 1783, the Sunni Al-Khalifa family took power in Bahrain. In order to secure these holdings, it entered into a series of treaties with the UK during the 19th century that made Bahrain a British protectorate. The archipelago attained its independence in 1971. A steady decline in oil production and reserves since 1970 prompted Bahrain to take steps to diversify its economy, in the process developing petroleum processing and refining, aluminum production, and hospitality and retail sectors. It has also endeavored to become a leading regional banking center, especially with respect to Islamic finance. Bahrain's small size, central location among Gulf countries, economic dependence on Saudi Arabia, and proximity to Iran require it to play a delicate balancing act inforeign affairs among its larger neighbors. Its foreign policy activities usually fall in line with Saudi Arabia and the UAE.
The Sunni royal family has long struggled to manage relations with its large Shia-majority population. In early 2011, amid Arab uprisings elsewhere in the region, the Bahraini Government confronted similar pro-democracy and reform protests at home with police and military action, including deploying Gulf Cooperation Council security forces to Bahrain. Political talks throughout 2014 between the government and opposition and loyalist political groups failed to reach an agreement, prompting opposition political societies to boycott legislative and municipal council elections in late 2014. Ongoing dissatisfaction with the political status quo continues to factor into sporadic clashes between demonstrators and security forces.