sentence1: Excavated from a sandstone hill in the third and second centuries b.c. , the Udaigiri (Sunrise Hill) caves were dwellings for priests and monks when Jainism was the state religion in the kingdom of Kalinga.
sentence2: The caves provided the priests and monks a safe place to wait out the years for them to become prominent again.