During that period, in 804, he was appointed Inspector of the envoy to Tang China, and as such crossed over to China together with Kukai, Saicho, and the rest of the emissaries.
その間、延暦23年（804年）、遣唐使判官として空海・最澄らとともに唐へ渡った。