Diwali in Jainism marks the anniversary of Nirvana (final release) or liberation of Mahavira's soul, the twenty-fourth and last Jain Tirthankara of the present cosmic age. It is celebrated at the same time as the Hindu festival of Diwali.