the khedivate of egypt (, ; "") was an autonomous tributary state of the ottoman empire, established and ruled by the muhammad ali dynasty following the defeat and expulsion of napoleon bonaparte's forces which brought an end to the short-lived french occupation of lower egypt. the united kingdom invaded and took control in 1882. in 1914 the ottoman empire connection was ended and britain established a protectorate called the sultanate of egypt.