Go is believed to have been introduced to Japan by Kibi Makibi who had studied in Tang China at the beginning of the 8th century. But the Taihō Code, enacted in 701, has a description of Go and therefore the game may have been introduced a little earlier. After it was introduced from China, Go came to be actively played during the Nara period (710–794), and during the following Heian period (794–1185) Go was a favourite aristocratic pastime, as is described in typical literary works of this period such as "The Pillow Book" and "The Tale of Genji".