Complex sentence: Morocco applied to join the European Union in 1987, but was rejected by the European Council because it was not considered a European country and therefore not eligible to join.
Split into simpler sentences: Morocco applied to join the European Union in 1987. The application was rejected by the European Council because it was not considered a European country and therefore not eligible to join.