India before the British Raj was divided into many small states and kingdoms. Alexander the Great tried to unite India under one rule in the 4th century BCE but was unsuccessful. In the 4th-3rd century BCE, Chandragupta Maurya founded the Mauryan Empire that controlled most of India through a centralized bureaucracy and large army. During the reign of Ashoka in the 3rd century BCE, the empire adopted Buddhism and promoted tolerance. However, the empire fragmented after Ashoka's death. Several empires rose and fell over subsequent centuries, and northern India saw invasions and rule by the Huns, Arabs, and the Mughals, with the country again dividing into many states by the time of