Spanish cyclist Iban Mayo has been banned for two years after the Court of Arbitration for Sport (CAS) upheld an appeal by the UCI, the Lausanne-based court said on Tuesday.

Mayo tested positive for the banned blood-booster EPO on July 24 during last year’s Tour. However, the Spanish national federation refused to discipline Mayo, saying the testing process at laboratories in Paris and Ghent, Belgium, was flawed.

The UCI appealed, and a CAS panel of three lawyers decided EPO was present in Mayo’s urine.

“Accordingly, the CAS disqualified Iban Mayo from the Tour de France 2007 and imposed a two-year ban as from 31 July 2007,” the court said in a statement.

Speaking to The Associated Press before the CAS verdict, UCI President Pat McQuaid called Spain’s cycling federation soft on doping.

“The Spanish federation have constantly defended athletes who have been involved in doping cases,” McQuaid said. “They have been light in the way they’ve treated doping cases.”