Also, he was actively involved in compiling Taiho Ritsuryo (Taiho Code) and later Yoro Ritsuryo Code, but he died of an illness in 720 and the compilation work was halted.
また、大宝律令の編纂にも関与、その後、養老律令の編纂作業に取りかかるが720年に病死、作業は中途する。