Chris Froome was thrilled with his performance over the cobbles – despite losing the Tour de France leader's yellow jersey.

Tony Martin, who began the day one second behind Froome, belatedly claimed a first maillot jaune of his career with victory on stage four to Cambrai after a rollercoaster start for his Etixx-QuickStep team.

Froome (Team Sky) had gained enough bonus seconds to deny the German on Monday, but fell 12 seconds behind in second overall after an accomplished performance across the cobbles of northern France on the 223.5-kilometre route from Seraing in Belgium.

"Losing the yellow jersey at this stage is no big deal," Froome said.

"There is still a long way to go and, as a time-trial specialist, Tony is not going to be there in the mountains.

"I was definitely happier to see it go to him than any of my GC (general classification) rivals."

Froome was expertly guided by a phenomenal effort from team-mate Geraint Thomas and looked to be making gains on two of his main rivals for overall victory as Alberto Contador (Tinkoff-Saxo) and Nairo Quintana (Movistar) missed notable splits in the bunch.

Yet the pair finished on the same time as Froome and Vincenzo Nibali (Astana), the defending champion who was among the main protagonists on the six cobbled sections which came in the final 46km of the stage.

Froome, who survived a wobble after being nudged into the gutter, followed Thomas off the final section of cobbles, with around 8km to go, in first place and surged on.

The pair forced an eight-rider selection including Nibali, who made major gains on the cobbles 12 months ago, as well as John Degenkolb (Giant-Alpecin), the winner of the Paris-Roubaix one-day race known as 'the Hell of the North' which features some of the same cobbled sections.

Froome appeared to want the bunch to attack, but a lack of collaboration meant a stalemate and the peloton bridged the gap.

Martin had punctured with around 20km remaining.

But the multiple world time-trial champion had the strength to return to the lead group then timed his attack, going solo 3km from the end to win.

Froome did not even see a cobble as his Tour defence ended last year after three crashes in two days, but this time he benefited from a fine Team Sky showing.

Froome, who spent a British record 15th day in the yellow jersey, added: "It was a bonus to come out of the last cobbled section on the front with Geraint, and the legs felt good.

"It wasn't about showing how strong I am on the cobbles, it was all about staying out of trouble."

There was a moment of alarm for Froome when, with around 27km to go, he lost Thomas' wheel and nudged Jacopo Guarnieri (Katusha).

"That's hairy," Froome said. "That's riding on the cobbles. I think all the GC contenders will sleep better tonight."

Froome's advantage over his main rivals remains the same after all four finished on the same time. Contador is 36secs behind Froome, with Nibali 1:38 and Quintana 1:56 behind, respectively.

It was an ideal scenario for Froome's Team Sky, happy to surrender yellow. No longer required to lead the breakaway chase, the squad can relax a little ahead of an expected sprint finish on Wednesday.

Martin's Etixx-QuickStep squad will be expected to do much of the work, particularly as Mark Cavendish will be looking to add to his tally of 26 Tour stage wins on the 189.5km fifth stage from Arras to Amiens.

Cavendish had been favourite for victory on Sunday's second stage to Zeeland, but the sprint was launched too early and he finished fourth, with bonus seconds denying Martin yellow.

"The last few days I missed the yellow by a few seconds," Martin said.

"The pressure was getting more and more. Crossing the line first for the stage and also having the yellow now makes me super happy."

It was a challenging day as dust kicked up off the bone-juddering cobbles and Alex Dowsett (Movistar) was among the casualties.

Dowsett crashed as the pace increased and finished 191st and last, 26:04 behind Martin.

The Briton, who has haemophilia, nursed a bleeding elbow which required six stitches, but said he would be fine to continue.