The Tower of Babel story shows how God originally wanted all people to be together.
Gen 11:4 Then they said, “Come, let’s build a great city for ourselves with a tower that reaches into the sky. This will make us famous and keep us from being scattered all over the world.”
It was the people that wanted to be together. Why? to bring glory to themselves AND to retain power. If people scattered there would be no centralized power.
There is more to it than that and I would encourage reading before and after the above. Maybe even the whole Bible?
Agreed, the tower of Babel was a ziggurat built by people uniting against God. God scattered them and confounded thier languages, making it more difficult for them to unite under one cause or code against him. He chose a people to bestow His own code/law upon, and thus is the history of Israel set in motion.