The Buddha belonged to a small gana known as the Sakya gana, and was a kshatriya. When he was a young man, he left the comforts of his home in search of knowledge. He wandered for several years, meeting and holding discussions with other thinkers. He finally decided to find his own path to realisation, and meditated for days on end under a peepal tree at Bodh Gaya in Bihar, where he attained enlightenment. After that, he was known as the Buddha or the Wise One. He then went to Sarnath, near Varanasi, where he taught for the first time.
Buddha attained Nirvana at Kusinara a village some 180km from Varanasi and it was in the state of Mallas.