Under the Pala Empire, Odantapuri, a major Buddhist monastic university was built at the site of Bihar Sharif. It eventually became the capital of Magadha, and then part of the Muslim Delhi Sultanate in the late 12th century, though local Rajputs soon re-established effective control. In the early 14th century, it was permanently captured by the Delhi Sultanate. Bihar Sharif was later ruled by other Muslim dynasties and then the British until Indian independence in 1947. The city has important Jain, Buddhist, Hindu and Muslim heritage and landmarks.