In 804, he went to Tang as formal ryugakuso (foreign priest studying Buddhism) (who were scheduled to stay in Tang for study for 20 years) included in a Japanese envoy to Tang Dynasty China.
延暦23年（804年）、正規の遣唐使の留学僧（留学期間20年の予定）として唐に渡る。