In general, an adjective is capitalized if its meaning is "pertaining to X", where X is some specific person, place, language, or organized group.
Sometimes, an adjective is capitalized because it designates an ethnic group with a shared culture, heritage, or ancestry.