To obtain a visa for Germany, a person has to prove that they can pay the costs of their trip and stay. When someone cannot do so for certain types of visa (student visa, marriage visa, etc.), a third person can submit a so-called "declaration of commitment". This way, that person guarantees to assume all costs for the person entering the country in an emergency. The declaration of commitment also includes the costs of possible medical treatment or deportation.