The Tombs of Atuan by Ursula K. Le Guin (1971) — see its film and TV adaptations.
Arha's isolated existence as high priestess in the tombs of Atuan is jarred by a thief who seeks a special treasure.