Cao Cao seized control of the Han government during the Three Kingdoms period of Chinese history. He laid the foundations for what became the state of Cao Wei and was later honored as Emperor Wu of Wei after his death. Sources for this information include websites on ancient Chinese history and the Wikipedia page about the History of the Han dynasty.