The German residence permit (German: Aufenthaltstitel) is a document issued to non-EU citizens (so-called third-country nationals) living in Germany.
A German residence card is valid for a certain period of time and is issued for a certain purpose:
residence for educational purposes
residence for the purpose of economic activity
residence under international law or on humanitarian grounds
residence for family reasons