>>2379247The transition from slave societies to feudal ones were too gradual for the former to really have a reaction from it, beyond that, racism in the ancient world is much older, Hipocrates divided the world in three "races" based on climate, the barbarian brutish but brave northerners, the cowardly but civilised southerners and obviously the the greeks as the mix of the two, being the brave civilised ones.
The Romans also originally believed in similar ways, but with their massive expansion, those ideas died out, their last bout was the wars of the allies, where non roman italians rebelled against Rome, nearly destroying the state, and while they lost millitary, the romans elites realised that they couldn't both keep the proletariat (They actually were called like that back then, Marx just took the name again) class down and keep the non romans down, as such, racism gradually fell down in favor of a supremacy of romans as a civilisation and not as a people, leading eventually to the granting of all inhabitants of the empire, including people formelly called barbarians, this was kept until the end of the Roman empire.
The new barbarians kings had no matter for racism, as they already barely had any power and desired to integrate in the new roman system as to preserve the control of their new ruling class in their new kingdoms.
However centuries later, in France (I don't know about other countries) when feudalism actually devellopped and needed to justify itself in the face of multiple crises of the Hundred Years war, (Etienne Marcel, the Jacquerie and the contestation of French royal power) the French nobility started to claim their right of rule came from their stenght as the descendents of Frankish conquerors, and that by blood, they were superior to the the french peasentry, descended from the ancient gauls. So, I don't think it's fair to say that those societies weren't racists, they just had a clearly somewhat developped system of racial hierarchy in order to justify the current social order. However the origin of the modern form of racism, is indeed more to be seen in the transatlantic slave and colonialism.