How did racial terror lead to the great migration of black people from the south to other parts of the US?

How did racial terror lead to the great migration of black people from the south to other parts of the US? How can we understand the conditions in marginalized communities in these areas today as a direct result of this period of history?