The role of such a mission is to protect in the receiving State the interests of the sending State and of its nationals, within the limits permitted by international law; negotiating with the Government of the receiving State as directed by the sending State; ascertaining by lawful means conditions and developments in the receiving State, and reporting thereon to the Government of the sending State; promoting friendly relations between the sending State and the receiving State, and developing their economic, cultural and scientific relations.
The rights and immunities of diplomats are codified in the Vienna Convention on Diplomatic Relations.