Historical sources, including the ancient chronicle Mahavamsa, a record that the Buddha visited the Mahiyangana area in the ninth month after he attained enlightenment, which was his first visit to the country.According to the Mahavamsa, Sri Lanka was inhabited by yakshas at the time. It says that the Buddha subdued the yakshas there and held a discourse on Dhamma with them.