Gaya is an ancient city, with a Buddhist documented history dating back to the 6th century BCE when the sage Gautama Buddha attained enlightenment at Bodh Gaya, 16 kilometers from the modern city, and became the Buddha.