You might be interested in past posts on this topic:
Europe had normal diplomatic relations with non-white nations before turning explosively racist to justify their actions against all others. What happened to cause this shift?
^(05 Dec 2013 | 22 comments)
^(/u/victoryfanfare describes in detail the origins of modern racism.)
The Racism and Slavery section of the FAQ contains various threads on this and related topics.
You can ask followup questions by posting your questions in the comments with experts tagged to direct questions to them.