The Heian period was preceded by the Nara period and began in 794 A.