The origin of Shivratri is attributed to several stories
in Hindu mythology.
According to the Puranas, during the great mythical churning of
the ocean called Samudra Manthan, a pot of poison emerged from
the ocean. The gods and the demons were terrified as it could
destroy the entire world. When they ran to Shiva for help, he
in order to protect the world, drank the deadly poison but held
it in his throat instead of swallowing it. This turned his throat
blue, and since then he came to be known as Nilkantha, the blue-throated
one. Shivratri celebrates this event by which Shiva saved the
world.
According to another most popular legends, Shivratri marks the
wedding day of Lord Shiva and Parvati. Some believe that it was
on the auspicious night of Shivratri that Lord Shiva performed
the ‘Tandava’, the dance of the primal creation, preservation
and destruction. Another popular Shivratri legend stated in Linga
Purana states that it was on Shivratri that Lord Shiva manifested
himself in the form of a Linga. Hence the day is considered to
be extremely auspicious by Shiva devotees and they celebrate it
as Mahashivratri - the grand night of Shiva.