Grihapati commenced his penance at Kashi. Indra arrived there and requested him to demand anything he wished but Grihapati refused. Indra became furious and tried to attack him with his Vajra. Grihapati was very terrified. Right then Lord Shiva appeared and Indra had to retreat from the scene. Lord Shiva blessed Grihapati by saying even Kaalvajra would not be able to kill you. Grihapati became very pleased. The Shivalinga which he worshipped, later on became famous as Agnishwar linga. Lord Shiva made Grihapati the lord of all the directions.