The earlier agreements with Britain were replaced with a treaty of friendship. That same month Qatar became a member of the Arab League and of the United Nations. In 1981 the emirate joined its five Arab Gulf neighbours in establishing the Gulf Cooperation Council (GCC), an alliance formed to promote economic cooperation and enhance both internal security and external defense against the threats generated by the Islamic revolution in Iran and the Iran-Iraq War.