In 1798 Egerton was promoted Major of the 89th Regiment of Foot, where he saw action in the Irish Rebellion of 1798 taking part in the Battle of Vinegar Hill. After the rebellion, Egerton and the 89th foot were posted in Malta in 1800, and in 1801 transferred to Egypt for the Egyptian Campaign were he took part in the Battle of Alexandria and the Siege of Cairo.