Maybe you're a foreigner so may not know that the British came very later, the idea of Bharat (India) goes back to the 3rd century BC. Ashoka was the first emperor who ruled the entire subcontinent, from Afghanistan to Myanmar, from Kashmir to Sri Lanka.
Actually, if we say about the British, they just divided us on the basis of religion and caste.