The foreign relations of the Ottoman Empire were characterized by competition with the Persian Empire to the east, Russia to the north, and Austria to the west. The control over European minorities began to collapse after 1800, with Greece was the first to break free, followed by Serbia. Egypt was lost in 1798–1805.