A common criticism of the Bible is that it can be used to justify various atrocities. One of the most common examples is racism, because of course, that's a relatively recent stain on human history, and certain people are trying desperately to keep it current.
Of course, Biblically, there is no justification for racism. In fact, as is confirmed by the existence of actual twins who are "different races", there really aren't multiple races. The biggest distinctions in scripture are not between "black" people and "white" people (and by the way, it is worth noting that not a single Biblical author was of European descent...), but first between various nations, and also between believer and unbeliever.
The distinction between nations has nothing to do with racism, and indeed, whereas one's race is impossible to change, one can easily change one's nationality. To really drive this home, consider Rahab, the Canaanite prostitute. In spite of her past sins, she is of note in scripture. "By faith the harlot Rahab did not perish with those who did not believe, when she had received the spies with peace." (Hebrews 11:31). This woman is blessed to actually be in the ancestry of Christ Himself! (Matthew 1:5). Now, if the flesh incarnation of God chose to include a member of a detestable nation in His bloodline (and again, no Europeans), it doesn't seem sensible to turn around and say "the Bible is racist because it talks about national divisions".
On top of that, scripture is quite clear on the purpose of God raising and leveling nations: "God, who made the world and everything in it, since He is Lord of heaven and earth, does not dwell in temples made with hands. Nor is He worshiped with men’s hands, as though He needed anything, since He gives to all life, breath, and all things. And He has made from one blood every nation of men to dwell on all the face of the earth, and has determined their preappointed times and the boundaries of their dwellings, so that they should seek the Lord, in the hope that they might grope for Him and find Him, though He is not far from each one of us; for in Him we live and move and have our being, as also some of your own poets have said, ‘For we are also His offspring.’" (Acts 17:24-28).
In other words, the division of nations isn't about God showing preference to one ethnic group over another! Quite the opposite, it pleases Him to be closely involved with these people, so much so that if they will only seek Him (and indeed, He puts them in exactly the right place to do so), they will find Him. Africans? They are where they are because God loves them, and wants the same relationship with them as He has with Europeans. Asians? Again, they are where they are because God loves them, and wants the same relationship with them as Americans. What's interesting is we do actually see how this plays out throughout history. Atheism is particularly rare, even today, because the nations are perfectly aligned so that God's testimonies spread to them very quickly, even without internet.
Of course, due to sin, this also tended to backfire. Even God's chosen people, the Jews, would often rebel against Him in spite of direct contact with Him. Thus, you can imagine the kinds of ways other nations would mess up. The result? They ran their nations unjustly. Without due acknowledgement of God, they made evil plans, they waged unjust wars, they oppressed people, they stained the floors with innocent blood. Basically, they stored up wrath for themselves in ways God naturally could not allow to spread to the nation through which the Messiah was due to be born. Thus, yes, there was intense and intentional division.
The sad thing is, it still didn't work perfectly. Israel still tolerated paganism, and incorporated foreign religions into their own, which predictably lead them to commit great atrocities like burning their babies alive on alters, which would be surrounded by banging drums to drown out the screams.
"But what about slavery?", the critic may ask. Well, the short answer to that is, first, Biblical slavery is not race-based. In fact, racism in general is a relatively new concept. Throughout human history, slaves were often the same race as their owners, for fairly obvious reasons: Travel was quite difficult. Thus, tribes within nations would fight each other, and the losers would typically be enslaved.
And that really is the thing. The Bible merely regulated a pre-existing practice, and it is not shown to be one God approved of. This is actually why, during the slave trade, slaves were typically kept illiterate, and if they could read, they were given edited versions of the Bible, which omitted key accounts, such as the Exodus.
This is a very short answer, and arguably a clumsy one, to the objection that the Bible can be used to support racism. In reality, we see that it can't even be used to support the idea that race exists, much less that some are superior to others. But the key to that is context. You can make the Bible sing any song you want if you cut the verses in the right place. Psalm 14:1 even says the exact words "...there is no God...". Is the Bible an atheist book? Certainly not; the full verse puts those words in the mouth of a fool. In the same way, racism is the sin of showing partiality, which the Bible expressly warns God does not do. For that cause, if anyone owns slaves, they are warned quite sternly to treat them well (Ephesians 6:9), and even ideally to free them (1 Corinthians 7:21).
So in the end, there is no Biblical justification for racism, even if it can be erroneously used to justify racism. The key is context, and there is no context that justifies discrimination against a person based on biological particulars such as skin color.
But there is one distinction God does make. As mentioned earlier, there is a difference in His eyes between believers and unbelievers. These two "kingdoms" will one day be permanently separated, with believers enjoying a Utopia no Earthly human can imagine, and unbelievers suffering the penalty due for sin. That includes sins like racism, but also like twisting scripture to support racism, or to criticise scripture. These same scriptures tell us that all have sinned, and are by nature children of wrath, yet by His grace, God has made a way for us to become His children. Believers have the right to become children of God, being adopted into His family, and therefore having an inheritance in the Kingdom of Heaven. This beautiful gift will be claimed by people of every tribe, tongue, and nation, but the flip side of this is that each group will also be represented in Hell. There is no partiality: "You are this race" will not be used to prevent one coming to Christ, nor will "you are that race" prevent one being condemned. The distinction is the choice of the individual. Having received God's command to repent, you may continue in sin and die, or you may confess Jesus as Lord, believing in your heart God raised Him from the dead, and be saved. The choice is yours. Choose life.