The area occupied by Qatar has been settled since the Stone Age. After the rise of Islam in the 7th cent. A.D. it became part of the Arab caliphate, and later of the Ottoman Empire. In the late 18th cent. it became subject to Wahhabis from the region of present-day Saudi Arabia; they were later supplanted by the Al Thani dynasty. During the Turkish occupation from 1871 to 1913, senior members of the Al Thani family were named deputy governors; subsequently, Qatar became a British protectorate, with Abdullah bin Jassim al-Thani recognized as emir. In 1971, Qatar became independent of Great Britain. In 1972 the reigning emir, Ahmad ibn Ali al-Thani, was deposed by his cousin Khalifa ibn Hamad al-Thani. He in turn was deposed in June, 1995, by his son and heir, Hamad bin Khalifa al-Thani, who as crown prince was credited with having launched a major industrial modernization program.
In 1981, Qatar joined neighboring countries in the formation of the Gulf Cooperation Council (GCC) to strengthen economic relations among the participating nations. The country's stability was threatened by the Iran-Iraq War throughout the 1980s. Territorial disputes with Bahrain over the Hawar Islands and gas fields in the separating sea erupted in 1986, and there were armed clashes with Saudi Arabia in 1992 over their common border. These disputes were not completely settled until 2008.
During the Persian Gulf War (1991), international coalition forces were deployed on Qatari soil. Palestinians were expelled from Qatar in retaliation for the pro-Iraqi stance of the Palestine Liberation Organization (PLO), but since the war relations with the Palestinians have returned to normal. After the Persian Gulf War, Iraq was still regarded as a threat to Qatar's oil interests; Qatar signed a defense pact with the United States but also restored relations with Iraq.
Adopting a moderate course of action, Emir Hamad in the late 1990s eased press censorship and sought improved relations with Iran and Israel; his government worked to mediate a number of international conflicts. He also moved steadily to democratize the nation's government and institute elections. In 2003 voters approved a constitution establishing a largely elected advisory council with the power to pass laws, subject to the emir's approval; women have the right to vote and hold office. The constitution was endorsed by the emir in 2004 and came into force in 2005. The Al Udeid air base, in S central Qatar, has been used by the United States military since late 2001, and is the site of the U.S. Combined Air and Space Operations Center. The U.S. Central Command established forward headquarters in Qatar prior to the 2003 invasion of Iraq. During the Arab Spring Qatar was supportive of uprisings in Libya, Egypt, and Syria, and was seen as politically allied with Muslim Brotherhood groups in number of Arab nations. Sheikh Hamad abdicated as emir in 2013 and was succeeded by his son Sheikh Tamim bin Hamad al-Thani.