Muslims and Hindus worked together to become independent from British power. They were promised self rule for service in British Army, but when promises were not met, nationalists revolted.
Protesters were being jailed because of the laws passed by the British in 1919 called the Rowlatt Acts. They received no chance of trial and their rights were being unfairly violated.
In protest of the Rowlatt Acts, thousands of Indians went to Punjab. Their protests were seen as "a nationalist outburst" and the British were worried. Hundreds of people were killed and injured and this was known as the Amritsar Massacre. It caused a lot of anger across India and they turned away from the British to nationalism.
After the massacre, Mohandas K. Gandhi began leading the independence movement. Gandhi supported nonviolence and created civil disobedience which was used to disobey unfair British rule.
One of Gandhi’s nonviolent protests was the Salt March because of the 240-mile walk. Most Indians hated the Salt Acts which required a tax on salt, so in protest, they began making their own salt from seawater.
In 1935, the British passed the Government of India Act. India got local self-government and limited democratic elections but was not totally independent.