The foreign relations of the Ottoman Empire were characterized by competition with the Persian Empire to the east and Europe to the west. The foreign relations of the Ottomans began to collapse in the late 19th century and the early 20th century, the rise of nationalism under the Ottoman Empire eventually leading to the loss of many important territories. Austria-Hungary annexed Bosnia and Herzegovina, the Bulgarian Declaration of Independence soon followed, and eventually most of the Arab lands became independent soon before the Empire entered World War I.
The Ottoman Empire's diplomatic structure was unconventional and departed in many ways from its European counterparts. Traditionally, foreign affairs were conducted by the Reis ül-Küttab (Chief Clerk or Secretary of State) who also had other duties. In 1836, a Foreign Ministry was created.
Ambassadors from the Ottoman Empire were usually appointed on a temporary and limited basis, as opposed to the resident ambassadors sent by other European nations. The Ottomans sent 145 temporary envoys to Venice between 1384 and 1600. The first resident Ottoman ambassador was not seen until Yusuf Agah Efendi was sent to London in 1798.
Ambassadors to the Ottoman Empire began arriving shortly after the fall of Constantinople. The first was Bartelemi Marcello from Venice in 1454. The French ambassador Jean de La Forêt later arrived in 1535. In 1583, the ambassadors from Venice and France would attempt unsuccessfully to block William Harborne of England from taking up residence in Istanbul. This move was repeated by Venice, France and England in trying to block Dutch ambassador Cornelius Haga in 1612.
Capitulations were a unique practice of Muslim diplomacy that was adopted by Ottoman rulers. In legal and technical terms, they were unilateral agreements made by the Sultan to a nation's merchants. These agreements were temporary, and subject to renewal by subsequent Sultans. The origins of the capitulations comes from Harun al Rashid and his dealings with the Frankish kingdoms, but they were also used by both his successors and by the Byzantine Empire.