Stalin transformed the Soviet Union into a totalitarian state through five-year plans, forced collectivization, and brutal repression. He imposed a command economy, rapidly industrialized the country, and forcibly collectivized agriculture, causing millions to die in famines and purges. Stalin created a cult of personality, tightly controlled all aspects of society, and purged millions of perceived opponents through executions and the Gulag system of labor camps.