The first Japanese contact with tea most likely occurred in the Nara period (710-794), when Japan sent several diplomatic missions to Chang'an, the capital of China's Tang dynasty (618-907).
Subsequent writings from the Heian period indicate that tea was cultivated and consumed on a small scale by Buddhist monks as part of their religious practice, and that the imperial family and members of the nobility also drank tea.