The 20-time Grand Slam champion threatened to pull clear but Wawrinka was still intent on channelling his 2015 heroics.
A shoulder-height hooked cross-court forehand sparked Stan into a 2-1 break lead in the second set, with brave and bold shot-making vanishing the opportunities for Federer to then level the match at a set apiece.
In the third set, deep behind the baseline, Wawrinka catapulted a backhand returner winner cross court and broke for 4-3, orchestrating the crowd to raise their roars of approval.
Roger roars back
The third seed responded, rattling through two straight games, but couldn’t close out two set points. Another tie-break was required, with another majestic moment from Federer proving the difference. On the second point the 37-year-old canvassed the net and managed to absorb a blistering Wawrinka forehand to deflect an acute volleyed winner. It was practically behind Federer on contact as Wawrinka signalled a thumbs up to his friend.
Midway through the fourth the forecasted storms unleashed over the grounds at Roland-Garros, halting play at 3-3. Not even the elements could deny Federer, who upon the players' return to the court hurled a series of forehands with too much velocity for Stan to handle, before converting a third match point with a 41st winner at net.
Fedal XXXIX
Looking ahead to the 39th instalment of his rivalry with Nadal, Federer is defiant he can overturn some daunting statistics.
The 11-time Roland-Garros champion has beaten Federer in all five of their clashes on the terre battue in Paris, while Nadal hasn’t lost to the third seed on clay since Madrid in 2009.
“Like against any player, there is always a chance. Otherwise nobody will be in the stadium to watch because everybody already knows the result in advance," Federer said. “You just never know. He might have a problem. He might be sick. You might be playing great or for some reason he's struggling. Maybe there's incredible wind, rain, 10 rain delays. You just don't know.