Ke Mo was a general from the fallen Banyue Kingdom. He supported Ban Yue, helping her become the Imperial Preceptor, but later came to hate her after she allowed the Yong'an army into Banyue.
(Source: Heaven Official's Blessing Wiki)