 The Cao family from 184 to 220 was involved in the chaotic infighting between warlords, across various parts of China.In 220, Cao Pi founded the Wei, or Cao Wei dynasty (220 CE – 266 CE).with its capital at Luoyang, in northern China.