After leaving his princely life, Siddhartha Gautama sought spiritual teachers. According to Buddhist texts, he first studied under Alara Kalama in the Vajjian country, who taught him meditation leading to the "sphere of nothingness". Dissatisfied, he then went to Rajagriha and studied under Udraka Ramaputra (Uddaka Ramaputta), who taught him meditation leading to the "sphere of neither perception nor non-perception". Although he mastered these teachings, he found they did not lead to ultimate liberation and thus continued his search.