die Aufenthaltserlaubnis
residence permit
RuleCompound nouns take the gender of their last part.
Sample sentence · B1
Die Aufenthaltserlaubnis, die ich letztes Jahr bekommen habe, läuft bald ab.
The residence permit I got last year expires soon.
Noun · B1