In 672, the Jinshin war occurs and Prince Ōama becomes the emperor (Emperor Tenmu). In his era, Japan starts to make a Chinese style law system (Ritsuryo). Also, the word , which means "Japan" in Japanese, was started to be used in the era of Tenmu. 