I've been arguing with some people over this whole Ukraine-Russia shit and somebody mentioned this.

What was the deal with this? Why did the USSR do this? What are the western history books not telling me here?

Also bonus question, what was the deal with the entire resettlement program? Why was it needed?