The right of certain individuals, such as heads of state and diplomats, to be exempt from the jurisdiction of the local country and remain under the law of their home state
extraterritoriality
Historically, the right of foreigners (specifically under unequal treaties) to live in China or other countries while remaining outside of local jurisdiction