Answer
Before Emperor Wen established the Sui dynasty, he was an official in the Northern Zhou dynasty. He was a brilliant and ambitious man, and he quickly rose through the ranks of the government. He was eventually appointed as prime minister, and he used his position to consolidate his power. In 581, he deposed the last emperor of the Northern Zhou dynasty and established the Sui dynasty.