In the Mahabharata war, a supernatural solar eclipse occurred during the Jayadratha Vadh (killing of Jayadratha). Jayadratha had been granted a boon that the Pandavas could not kill him when Arjuna and Krishna were present. To break this protection, Krishna created an artificial sunset to make the Kauravas lower their guard, then brought back the sun to allow Arjuna to kill Jayadratha before sunset.