Local dissatisfaction with the Khedive and with European intrusion led to the formation of the first nationalist groupings in 1879, with Ahmed ʻUrabi a prominent figure. After increasing tensions and nationalist revolts, the United Kingdom invaded Egypt in 1882, crushing the Egyptian army at the Battle of Tell El Kebir and militarily occupying the country. Following this, the Khedivate became a ''de facto'' British protectorate under nominal Ottoman sovereignty.