Which empire did napoleon try to take Egypt and syria from?

Strictly speaking, when Napoleon invaded Egypt, the empire upon whose lands he was trespassing was the OTTOMAN EMPIRE. However, the Ottomans had very weak control over that area at the time. The local rulers were actually the MAMLUK Beys or Chieftains. While the Mamluks did not have de jure independence, they were the effective rulers of Egypt. It was only after Napoleon was expelled from Egypt that the Ottoman Empire took a direct interest in governing the territory.

The Ottoman Empire.