According to many texts the history of Tirupati Balaji to lord Varaha who was one of the forms of Vishnu. According to scholars, it created the whole sehachalam hill to the seven-headed snake, also called Adishesha on which lord Vishnu rests so it is a form of sheshnag so he could rest on earth. Sehachalam Hill has 7 peaks known as the 7 heads of Adishesh.