Why is it der Marokkaner?

Marokkaner ends in -er, and most nouns ending in -er are masculine: in a German dictionary, 86% of them take der.

All nouns ending in -er
Sense 1
der

Meaning

[1] Citizens of Morocco

[1] Staatsbürger von Marokko

Examples

[1] I bought this old book to a Moroccan on a bazaar

[1] Dieses alte Buch habe ich einem Marokkaner auf einem Basar abgekauft.

Declension

1 Singular Plural
Nominativ der Marokkaner die Marokkaner
Genitiv des Marokkaners der Marokkaner
Dativ dem Marokkaner den Marokkanern
Akkusativ den Marokkaner die Marokkaner

Pronunciation

Dictionary entries include material from Wiktionary. Wiktionary