As the Mughal Empire’s control weakened, communities across the subcontinent found themselves with more political space and economic freedom to assert their power in ways that had not been possible earlier.