Gandhi moved to the Transvaal and set up a law office in Johannesburg. He wasted no time in mounting a campaign to oppose the new law. Gandhi urged Indians to defy the new law and to suffer the punishments for doing so. He himself was arrested and incarcerated here.