The festival was first started in 863 to pray for the suppression of an epidemic. It became a yearly festival in 970.