Irishman Nicolas Roche of the AG2R-La Mondiale team won the 162km third stage of the Tour of Beijing, the hilliest in the race, as Germany's Tony Martin held on to the overall lead.
Roche finished ahead of compatriot Philip Deignan, who had been one of his breakaway companions along with Britain's Chris Froome, the recent runner-up in the Tour of Spain.
The main peloton, including HTC-Highroad's Martin, came over the finish line just a second behind.
Roche's victory was a welcome one for his AG2R team, which is on a desperate quest for WorldTour points in a bid to secure a top level licence for next season.
After a near two-year victory famine, the Irishman was also happy to step back on to the top step of the podium.
"I haven't won a race since the Irish national title in 2009," said Roche, who handed his French outfit only their sixth win of the season.
"It gets frustrating finishing second and third. Only winning matters."
AG2R were determined to get something out of the stage, being held in the hilly region close to the Great Wall of China, and played their cards to perfection in the finale.
Lloyd Mondory had given them options by making it into an earlier breakaway, and when that came to an end Sebastien Hinault and Julien Berard helped toughen the chase by accelerating at the foot of the day's penultimate climb.
At the foot of the last climb another teammate, Mickael Cherel, helped set the pace for Roche, who then set off to counter-attack Deignan.
Roche waited for Froome to catch up, and the trio came over the summit with a 20sec advantage on the chasing peloton and with 12 km to the finish.
Roche added: "The three of us worked well together. Philip also had his eye on the win.
"We know each other pretty well, but I think it's the first time we've been in a position to challenge for victory.
"I started to sprint for the line pretty far out, with about 300 (metres) to go and thankfully I had favourable wind conditions."
Martin will take a 17sec overall lead over David Millar (Garmin) into Saturday's fourth and penultimate stage, a 189.5 km ride from Yanqing to Shunyi.