


When receiving diplomats, who formally represent the sovereign, the receiving head of state grants certain privileges and immunities to ensure they may effectively carry out their duties, on the understanding that these are provided on a reciprocal basis.

Diplomatic immunity as an institution developed to allow for the maintenance of government relations, including during periods of difficulties and armed conflict. Many principles of diplomatic immunity are now considered to be customary law. Modern diplomatic immunity was codified as international law in the Vienna Convention on Diplomatic Relations (1961) which has been ratified by all but a handful of nations, though the concept and custom of such immunity have a much longer history dating back thousands of years. Diplomatic immunity is a form of legal immunity that ensures diplomats are given safe passage and are considered not susceptible to lawsuit or prosecution under the host country's laws, but they can still be expelled.
