Judicial systems have existed in India since ancient times. The Vedas and Upanishads mention a judicial system based on religious and philosophical precedents.
Court systems for civil and criminal matters were established in many ruling dynasties. A secular court system developed under the Mauryas and later the Mughals. The common law system came to India with the British East India Company. After independence, India established a single integrated judiciary.