Vishnu Purana tells Vishnu originated first and then Shiva came in existence from the eyebrows of Vishnu. Shiva Purana tells a different story. It says Shiva has no beginning and ending and he was the only one when there was nothing. Shiva is the supreme power who created Vishnu and Brahma.