Nalanda University, established in the 5th century CE during the Gupta era, was the most renowned center of Mahayana Buddhist learning in ancient India. While it taught various subjects including logic, grammar, and medicine, it was fundamentally a Mahayana Buddhist monastery-university that attracted scholars from across Asia. Hinayana Buddhism and Jainism were studied at other centers, while Hinduism was taught through traditional gurukuls.