In 236 under the order of Emperor Ming of Cao Wei, Sima Yi defeated the Gongsun family and annexed Liaodong, Lelang and Daifang to Wei. A dispute over the control of southern natives caused their revolt. The armies of Lelang and Daifang eventually stifled it.