At the Chess World Cup 2005, Bareev qualified for the Candidates Tournament for the World Chess Championship 2007, played in May–June 2007. He won his first round match against Judit Polgár (+2-1=3), but was eliminated when he lost his second round match against Peter Leko (+0-2=3).