In his attempts to junction with Tipu Sultan, Napoleon annexed Ottoman Egypt in the year 1798.