CAS ruled on Mellouli's case on 11 September 2007, ruling against him and issuing him an 18-month competition suspension, retroactively beginning on 30 November 2006. As a result of this sanction, all his results from the 2006 U.S. Open through the competitions his swam in 2007, including the 2007 World Championships, were nullified. His ban from competition covered most, but not all, of the qualification window for the 2008 Olympics. As the retroactive nullification of results wiped out all of his qualifying times for the 2008 Games, he ended up with just a week or two after the ban in order to qualify (which he did).