Cao Wei (220 CE - 265 CE) was one of the states that competed for control of China during the Three Kingdoms period. With the capital at Luoyang, the state was established by Cao Pi in 220, based upon the foundations that his father Cao Cao laid. Its name came from 213, when Cao Cao's feudal holdings were given the name Wei; historians often add the prefix Cao (曹, from Cao Cao's family name) to distinguish it from the other states in Chinese history also known as Wei, such as the earlier Wei state during the Warring States Period, and the later Northern Wei state. In 220, when Cao Pi deposed the last emperor of the Eastern Han Dynasty, Wei became the name of the new dynasty he founded, which was seized and controlled by the Sima family in 249, until it was overthrown and became part of the Jin Dynasty in 265.
Read more about Cao Wei: History, Culture, Ruling Family, List of Territories, List of Sovereigns