Extraterritoriality is the state of being exempted from the jurisdiction of local law, usually as the result of diplomatic negotiations. Historically, this applied to individuals. Extraterritoriality can also be applied to physical places, such as foreign embassies, military bases of foreign countries, or offices of the United Nations. The three most common cases recognized today internationally relate to the persons and belongings of foreign heads of state, the persons and belongings of ambassadors and other diplomats, and ships in foreign waters.
Extraterritoriality is often extended to friendly or allied militaries, particularly for the purposes of allowing that military to simply pass through one's territory.
It is distinguished from personal jurisdiction in the sense that extraterritoriality operates to the prejudice of local jurisdiction.
During the thirteenth and fourteenth centuries, the Italian sea republics of Genoa and Venice managed to wrestle extraterritoriality for their quarters (Pera and Galata) in the Byzantine capital, Constantinople. They even battled among themselves for further control of the weakened empire.
Throughout the declining years of the Ottoman Empire in the nineteenth century and twentieth century, the legal impenetrability of the Ottoman legal code created during the Tanzimat era began to weaken continuously through the spread of European colonialism and the prevalence of legal positivism. The laws and regulations created for Ottoman subjects to abide by often did not apply to European nationals conducting business and trade in the provinces of the empire. The various overlapping governmental laws led to legal pluralism in which jurisdiction often was left up to the great powers to institute and organize their own legal structures to represent their citizens abroad.