In some cases, residence permits are granted for the purpose of studying, professional training or family reunification.
Under several conditions, spouses, registered partners and children can follow you to Germany with the purpose of family reunification.
If you're a foreign national planning to study in Germany, you'll need a residence permit that states this purpose.
When is it possible to stay in Germany to do a language course? Find out here.