Only if there is self-discipline any other form of discipline can be successful.
On the basis of this Mahavira ordained people in the rigour of religious discipline.
In 527 BC he attained Nirvana.
Bhagwan Mahavira fasted for two days before attaining nirvana.
In that time he preached about religion.
Sitting in the yogic posture of paryankasan on the moonless night of the month of Karthik he attained nirvana.
The people of Mall and Licchavi celebrated it by lighting lamps.
In the memory of the light, the festival of lights came to be.