Athletics chiefs have been compared to apartheid-era South African leaders after announcing new rules governing testosterone levels in female athletes.
The changes mean some female runners with naturally high testosterone levels will have to race against men or take medication if they wish to compete.
South Africa's Olympic 800m champion Caster Semenya could be affected.
And her country's ruling party, the African National Congress, says the measures are "blatantly racist".
It wants the South African government to challenge the rule change - which comes into effect in November - at the Court of Arbitration for Sport (Cas).
Athletics' governing body, the International Association of Athletics Federations (IAAF), says the changes will stop women with high testosterone levels gaining an advantage.
"The rule is neither racist nor sexist," a spokesperson said.
Apartheid was a system of racial segregation imposed by a minority white ruling group in South Africa from 1948 to 1991.
"The regulations are a painful reminder of our past where an unjust government specifically legislated laws for certain activists in society to stifle their fight against an unjust system," the ANC said.
"The IAAF uses the same tactic to exclude those who have defined the past decade as champions and treasures of their home countries."
The IAAF said: "The sport has a lot of athletes with DSD (hyperandrogenism).
"It is not just the one or two females you hear about in the media. In elite female athletics, the number of intersex athletes is 140 times more than you might find in the normal female population.
LEVEL PLAYING FIELD
"As world governing body, we need to ensure a level playing field for all athletes. The research and evidence clearly shows there is a performance advantage in female athletes with DSD over the track distances covered by this rule."
The rule for athletes who have 'differences of sexual development' apply to athletes who compete at distances from 400m to one mile.
The ANC said the IAAF rules were "another attempt by sport bodies to discriminate against" Semenya.
The 27-year-old has previously been asked to undertake gender testing by athletics chiefs but no results have ever officially been made public.
Similar rules brought in by the IAAF were suspended following a legal challenge by the Indian sprinter Dutee Chand in 2015.
Female athletes affected must take medication for six months before they can compete, and then maintain a lower testosterone level.
"We call on government to challenge this grossly unfair, unjust and blatant racist attempt by the IAAF to Cas and have these regulations set aside," an ANC statement said.
"The racial undertones of this cannot go unnoticed.
"We call on all sports-loving people to stand and defend athletes against these anti-sport regulations that will not only prevent athletes from participating in sporting events but will also infringe on their human rights."
Speaking after winning the 800m and 1500m title at the Commonwealth Games earlier in April, the double Olympic 800m champion and three-time world champion said she could move up to longer-distance events.
"When I do my long runs I feel like I can feed into distance running," added Semenya.