Following the British withdrawal from the UAE in 1971 and the establishment of the UAE as a state, the UAE disputed rights to three islands in the Persian Gulf against Iran, namely Abu Musa, Greater Tunb, and Lesser Tunb. The UAE tried to bring the matter to the International Court of Justice, but Iran dismissed the notion. Pakistan was the first country to formally recognize the UAE upon its formation. The UAE alongside multiple Middle Eastern and African countries cut diplomatic ties with Qatar in June 2017 due to allegations of Qatar being a state sponsor of terrorism, resulting in the Qatar diplomatic crisis. Ties were restored in January 2021. The UAE recognized Israel in August 2020, reaching a historic Israel–United Arab Emirates peace agreement and leading towards full normalization of relations between the two countries.