Quite recently (in the grand scheme of things), it was generally accepted that african-americans were inferior to whites. A century and a half ago, they were slaves!
Until 1967 there were still laws in place that required marriages to be between people of a similar race and opposite sex. See Loving v. Virginia and the Virginia trial judges quote: