Battle of Baekgang
In mid-702 he was promoted to "sangi", and a month later departed for China, accompanied by Yamanoue no Okura and the monk and bearing the Taihō Code. This was the first full Japanese diplomatic mission to China since the two met in conflict at the Battle of Baekgang. In addition to restoring normal relations, the mission also allowed for the continued maintenance of Ritsuryō, and offered an opportunity to inform China of Japan's name change from to . Arriving in Chang'an the next year, the envoys had an audience with Empress Consort Wu. The Chinese evaluated Mahito as a poised and elegant man, well-read and learned in the Chinese classics, and he received a temporary position in the government from the Empress.