The missions to Tang (kentoshi) were the official embassies Japan sent to the Tang court from 630 to 894 — through the Nara age into early Heian, some ten-odd appointments and about thirteen actual voyages. A mission usually sailed four ships with several hundred souls: chief and deputy envoys, students and student-monks aboard, the route running from the early northern line along Korea's coast to the southern-island and open-sea routes. After Japan's defeat at the Battle of Baekgang in 663 against the Tang and Silla alliance, Japan both garrisoned Dazaifu in watchfulness and kept sending missions to absorb Tang culture — the Taika Reform and the ritsuryo order after it drafted on Tang institutions. The students and monks contributed most: Kibi no Makibi and the monk Genbo rose to high office on return; the monks Kukai and Saicho, in Tang in 804, founded Shingon and Tendan at home — and the grid of the Heian capital, Heian-kyo, copied Chang'an. In 894 Sugawara no Michizane, pleading Tang decline and the perils of the sea, asked to stop the missions — the embassy age closed, and Japan turned to digesting Tang culture into a national style of its own.