The British wrested it away in 1795, holding on to the growing town until India gained its hard-won independence in 1947.