Was there any racism during the ancient and middle ages? I know that Ancient Greeks for instance considered any non-Greek a barbarian but what I'm asking about is racism based on the skin color.
Also, was modern racism solely a product of colonialism or were there any other major reasons behind it?