History of Tirumala
The first temple at Tirumala Tirupati was built by King Thondaiman(1900 years back), ruler of the ancient Thondaimandalam, after he had a dream of Lord Vishnu. Thondaiman kings are said to have built the original Gopuram (tower) and the Prakhara in the 8th century.
The Pallavas of Kanchipuram (9th century AD), the Cholas of Tanjore (10th century), and Vijayanagara pradhans (14th and 15th centuries) were committed devotees of Lord Venkateswara. During the invasion of Srirangam by Malik Kafur in 1310-11 AD, the Ranga Mandapam of the temple served as the shelter for the presiding deity of Srirangam, Ranganatha Swamy. Later, under the rule of the Vijayanagara emperors, was when the temple gained most of its current wealth and size, with the donation of diamonds and gold.
In 1517 Vijayanagara ruler Sri Krishna Deva Raya, on one of his many visits to the temple, donated gold and jewels, enabling the Vimana (inner shrine) roofing to be gilded. Statues of Sri Krishna Deva Raya and his spouse stand in the premises of the temple. After the decline of Vijayanagara Empire, kings from states such as Mysore and Gadwal worshiped as pilgrims and gave ornaments and valuables to the temple. Maratha general Raghoji I Bhonsle (died 1755) visited the temple and set up a permanent administration for the conduct of worship in the temple. There is an idol of Raja Todar Mal who was the revenue minister of Akbar, greeting pilgrims in the premises of the temple.