During the 175 years of British rule in India, many pan-India institutions were created by the British to serve their imperial interests in the subcontinent. These included the railways, police, the revenue, postal and telegraph departments, a sound judicial system, roads and bridges linking ports to the hinterland and, above all, the Indian Army, both for enforcing their writ within India and for operations in their overseas territories.