Horatio Nelson defeated François-Paul Brueys D'Aigalliers at the Battle of the Nile in Egypt in 1798. Three armies marched into Mysore in 1799—one from Bombay and two British, one of which included Arthur Wellesley. They besieged the capital Srirangapatna in the Fourth Mysore War. There were more than 26,000 soldiers of the British East India Company, approximately 4,000 Europeans and the rest Indians; while Tipu Sultan's forces numbered only 30,000. The betrayal by Tipu Sultan's brother in law in working with the British and weakening the walls to make an easy path for the British.