Status of forces agreement
A status of forces agreement (SOFA) is an agreement between a host country and a foreign nation stationing military forces in that country. SOFAs are often included, along with other types of military agreements, as part of a comprehensive security arrangement.
Source: Wikipedia — Status of forces agreement (CC BY-SA 4.0)