If you have resided permanently and lawfully in the territory of the Federal Republic of Germany for a period of five years as a third-country family member of an EU or EEA citizen, you can apply to the Aliens' Registration Office for the issuance of a permanent residence card.