Most foreign residents can apply for a permanent residence permit – a "settlement permit" (Niederlassungserlaubnis) – after five years. Some people may get it sooner: For example, if you are a non-EU national married to a German citizen, you could file your application for a settlement permit after three years.