In 1987, Morocco applied to join the European Communities (the precursor to the European Union). The application was rejected on the grounds that Morocco was not considered to be a "European country" and hence could not join.