As the Shore Temple was initially identified as part of the Seven Pagodas at Mahabalipuram, an ancient Hindu legend referred to the origin of these pagodas in mythical terms. Prince Hiranyakasipu refused to worship the god Vishnu. The prince's son, Prahlada, loved and was devoted to Vishnu greatly and criticized his father's lack of faith. Hiranyakasipu banished Prahlada but then relented and allowed him to come home. Father and son quickly began to argue about Vishnu's nature. When Prahlada stated that Vishnu was present everywhere, including in the walls of their home, his father kicked a pillar. Vishnu emerged from the pillar in the form of a man with a lion's head, and killed Hiranyakasipu. Prahlada eventually became the king, and had a grandson named Bali. Bali founded Mahabalipuram on this site.