There were eras where slavery had little to do with race (see: the Roman Republic and Empire) but the history of slavery in the last half-millennium had everything to do with race; it is the edifice on which white supremacy was built.
You're not "controversial" for skipping over the blindingly obvious, but we're not allowed to insult people on this forum, so feh!