A great number of immigrants from other parts of the Empire flooded to South Africa. The two largest groups were Malays and South Asians. For the Afrikaners, this was a problem. They threatened to undercut European wages, and to take a slice of the wealth created by the mines. Smuts sought to clamp down on the stream of immigrants by any method necessary. He tore into the gangs that smuggled them into the country, limited Indian employment rights, and had each foreign worker register with the government. Opposing Smuts was an Indian lawyer by the name of Mohandas Gandhi.