according to vedas and puranas, once the other two of the triads of hindu gods, brahma and vishnu were fighting over each other's prowess. while rudra or shankara and maheswara didn't felt ego or ahamkaram as they know 5 divine functionalities (?panchakritya karmas? ) are controlled by the power of lord shiva. bhagavan shiva advised brahma, vishnu and rudra and maheshwara and sadha shiva to do divine functionalites (?panchakritya karmas? ). they are essentially of the manifestations of his origin. they would carry out ?panchakritya? or five duties viz. 1. srishti or creation would be performed by brahma, 2. sthithi or protection by vishnu, 3. laya or destruction by rudra; 4. the fourth task, viz. tirobhav would be performed by mahesa (after destruction millions of souls will be protected which is concealment and revival) and 5. sadha shiva will give ?anugraha?(providing salvation).finally the most significant task of anugraha would be the exclusive dispensation by himself. but brahma and vishnu forgot the holy and supreme power and fought each other. by seeing the intensity of the battle, lord shiva assumed the form of a flaming linga in between brahma and vishnu and challenged both of them by asking them to measure the gigantic linga (phallic symbol of lord shiva).the place where lord shiva manifested is arunachala refers to the holy hill at thiruvannamalai in tamil nadu. the hill is also known by the names arunagiri, annamalai hill, arunachalam, arunai, sonagiri and sonachalam. awestruck by its magnitude, brahma and vishnu decided to find one end each to establish supremacy over the other. lord brahma took the form of a swan and went upwards while lord vishnu assumed the form of varaha - a boar and went into the earth towards nether land. both searched for thousands of miles but neither could find the end. on his journey upward, brahma came across ketaki flower. exhausted and bewildered with his search to find the uppermost limit of fiery column, brahma made ketaki assent to lie that he had seen the top of the column where the flower had previously resided. accompanied by his accomplice, brahma confronted vishnu and asserted that he had indeed discovered the origin of the cosmic column. at this point, the central part of the pillar split open and sadhashiva revealed himself in his full glory. the night sadhashiva revealed himself is celebrated as shivaratri or satya ratri or gyana ratri on the shivaratri night. overawed, both brahma and vishnu bowed before him accepted lord shiva's supremacy. lord sadha shiva also explained to brahma and vishnu that both of them as well rudra and maheshwara were born out of lord shiva and all the five were then separated out into five different aspects of divinity. this day is regarded as satya ratri or gyana ratri because brahma and vishnu lost their ego and found supreme almighty god is sat chit ananda however, lord sadha shiva was angry with brahma for making a false claim. the lord cursed brahma that no one would ever pray to him. (this legend explains why there is hardly any brahma temple of significance in india.) lord shiva also punished the ketaki flower for testifying falsely and banned her from being used as an offering for any worship. while lord vishnu realized the mistake for it so vishnu got the boon that he will be equally beautiful as me (shiva) but he too felt ahamkaram as supreme (ego) so he did not supreme fame while shankara or rudra and maheswara didn't felt ego or ahamkaram so lord shiva gave them boon that there fame and power will be equal to mine.they both will praised as equal as me.since it was on the 14th day in the dark fortnight of the month of phalguna that shiva first manifested himself in the form of a linga, the day is extremely auspicious and is celebrated as mahashivaratri - the grand night of shiva. to celebrate the occasion, devotees of lord shiva fast during the day and pray to the lord throughout the night. it is said that worshipping of lord shiva on shivaratri bestows one with happiness and prosperity.unlike most hindu festivals which are celebrated during the day, maha shivaratri is celebrated at night. the celebration includes maintaining a "jaagaran", an all-night vigil and prayers, because shaiva hindus mark this night as "overcoming darkness and ignorance" in one's life and the world through shiva. offerings of fruits, leaves, sweets and milk to shiva are made, some perform all-day fasting with vedic or tantrik worship of shiva, and some perform meditative yoga. [4] in shiva temples, "om namah shivaya", the sacred mantra of shiva, is chanted through the day. the legend of marriage of shankara and parvati is one the most important legends related to the festival of mahashivaratri. the story tells us how lord shankara got married to parvati, his divine consort. according to legend of shankara and shakti, the day lord shankara got married to parvati is celebrated as shivaratri - the night of lord shiva. maha shivaratri is celebrated over three or ten days based on the hindu luni-solar calendar. [2] every lunar month, there is a shivaratri (12 per year). the main festival is called maha shivaratri, or great shivaratri, and this is on 13th night (waning moon) and 14th day of the month phalguna (magha). according to the gregorian calendar, the day falls in either february or march