Was racism a cause or effect of New World slavery

Was racism a cause or effect of New World slavery?