His purpose was to save the young Jing Tianming from the king and protect him from the king' agents until they join The Mohist (Mo Jia) group.
His purpose was to save the main character, the young (Jing Tianming) from the king. He protects Jing Tianming from the attacks ordered by the king until they join The Mohist (Mo Jia) group.