Read the passage and answer the questions:
Temple building in the region had a long history, going back to dynasties such as the Pallavas, Chalukyas, Hoysalas and cholas. Rulers very often encouraged temple building as a means of associating themselves with the divine-often, deity was explicitly or implicitly identified with the king. Temples also Functioned as center of Learning. Besides, rules and other often granted land other resources for the maintenance of temples. Consequently, temples developed as significant religious, social, cultural and economic centres. from the point of view of the rules, constructing, repairing and maintaining temples were important means of winning support and recognition for their power, wealth and piety.