Funny story, that. It all starts with the Suez Canal.

Shipping things between the far east and Europe the long way around Africa was certainly doable, but very very time-consuming and expensive. 

Once built, the canal was half owned by the French and half owned by Egypt. However, [Egypt's finances were your typical third world despotic mess][2], so in 1875 [the ruler of Egypt][3] was forced to put his one money-making asset up for sale: Egypt's half stake in the Suez Canal. Since it had become a vital link between England and its Indian colonies, England snapped it up.

Obviously this did nothing to stop the economic rot, and Egypt soon found itself so in hock to British and French banks, that the whole country was essentially put into their receivership in October of 1876. Of course the locals weren't very happy with this, so the [inevitable revolt][4] against the foreign creditors occurred in 1881. This threatened both the British banker's investments, and the now-vital canal link to India. So the British Imperial impulse immediately kicked into gear, resulting in the [1882 Anglo-Egyptian War][5], the seizure of both the canal and the country by British troops, and finally the country's absorption into the British Empire. The French, ending up with nothing after all their hard work, were less than pleased.


  [1]: http://en.wikipedia.org/wiki/Grandes_%C3%A9coles#Origins
  [2]: http://en.wikipedia.org/wiki/Isma%27il_Pasha#Debts
  [3]: http://en.wikipedia.org/wiki/Isma%27il_Pasha
  [4]: http://en.wikipedia.org/wiki/Urabi_Revolt
  [5]: http://en.wikipedia.org/wiki/1882_Anglo-Egyptian_War