At the end of a long mountain stage which came down to a final sprint for the line in Peyragudes, Aru accelerated with around 300m to go, instantly putting the yellow jersey of Froome in trouble.
Aru's burst for the line was followed by Romain Bardet (Ag2r La Mondiale) and Rigoberto Uran (Cannondale-Drapac) on the 16 per cent slopes of the ski resort's airstrip, with Bardet coming through in the final 50m to take the stage win.
Meanwhile Froome struggled with the explosive effort required for the final sprint, swerving across the road as he eventually finished in seventh place, 22 seconds behind Bardet and 20 seconds behind Aru.
That result meant that Froome slipped to second in GC, six seconds behind Aru, with Bardet now just 25 seconds back in third.
How it happened
The opening 20km saw aggressive racing before a strong 12 rider move went clear. In the move were Cyril Gautier (Ag2r-La Mondiale), Imañol Erviti (Movistar), Koen De Kort (Trek-Segafredo), Stefan Küng (BMC Racing), Diego Ulissi (UAE Team Emirates), Steve Cummings (Dimension Data), Marcel Kittel and Jack Bauer (Quick-Step Floors), Nils Politt (Katusha-Alpecin), Thomas De Gendt (Lotto-Soudal), Michael Matthews (Team Sunweb) and Julien Simon (Cofidis).
That group steadily built an advantage of just over five minutes to the peloton, which was controlled by Team Sky for the flat first half of the stage as the riders endured wet weather on the way into the Pyrenees.
The only real action of the early part of the stage came at the intermediate sprint after 94km, where Matthews edged out Kittel to trim the German's lead in the race for the green jersey from 133 to 130 points.
Beyond the midpoint of the stage and Sky continued to set the pace on the Col des Ares and the Col de Menté, Luke Rowe and Christian Knees keeping the gap to the break locked at around six minutes. At the top of the climbs De Gendt took maximum points on the Col des Ares, before losing out to Matthews, trying to protect the lead of team-mate Barguil in the mountains classification, on the Col de Menté.
The valley roads ahead of the Port de Balès saw the gap drop towards four minutes, before the break started to splinter a few kilometres in to the HC climb.
De Gendt upped the pace to shed some of the weaker climbers from the break, initially followed by Küng, Gautier, Cummings, Bauer, and Simon, before accelerating once again, a move that only Cummings was able to follow.
Meanwhile Vasil Kiryienka was working hard on the front to slowly bring down the gap to the leaders and also drop fifth place rider Jakob Fuglsang (Astana) who was suffering after breaking his wrist and elbow on a crash on stage 11.
Kiryienka pulled off with a few kilometres remaining, which seemed to be a signal for the first of the GC attacks as Alberto Contador (Trek-Segafredo) followed a move by Warren Barguil. However the move was short-lived as Michal Kwiatkowski slowly raised the pace to bring them back.
There was also action at the front of the race, with Cummings going clear of De Gendt and setting off in search of his third Tour breakaway victory in as many years.
By the top of the climb Cummings' advantage was up to around 1-30 over De Gendt, who was then joined by Barguil on the descent before both riders were caught by the Sky-led peloton.
The technical descent saw Sky unwilling to take risks, which allowed Cummings to extend his lead out beyond two minutes by the start of the Col de Peyresourde with 15km remaining.
The main group made it all the way to the base of the Peyresourde without incident, but on the final corner to turn onto the climb Mikel Nieve misjudged a corner, going straight on between two motorhomes, leading Froome and Aru off the road too. Somehow all three riders managed to stay upright, quickly chasing back up to the rest of the GC contenders who decided to wait for the yellow jersey and his main rival.
That incident allowed Cummings' lead to stay around two minutes for the first few kilometres of the climb, the British champion looking reasonably comfortable and pedalling with a high cadence as the gradient hovered around eight per cent.
Not looking quite so comfortable was Nairo Quintana (Movistar), who was dropped early on the climb with Kwiatkowski still toiling away on the front.
With 10km remaining Kwiatkowski's work was done, leaving Nieve to take over as Cummings' lead came below a minute for the first time in the race, and from there falling rapidly as he was caught just over a kilometre later.
Nieve continued to lead for the rest of the climb as the expected attacks from Froome's GC rivals failed to materialise and Contador was dropped just 500m from the summit.
The Basque rider continue to lead onto the final climb to Peyragudes, before handing over to Landa for the final two kilometres.
Landa led until around 300m to go when Aru attacked. The Italian was followed by Uran and Bardet, but Froome instantly looked in trouble, and while his rivals powered towards the line, the yellow jersey swerved left and right across the steep airstrip.
In the final hundred metres Aru was overhauled first by Bardet and then by Uran, the former taking the third Tour de France stage win of his career, while Froome fought to the line to limit his losses.
Tour de France 2017, stage 12: Pau to Peyragudes (214.5km)
1. Romain Bardet (Fra) Ag2r La Mondiale, in 5-49-38
2. Rigoberto Uran (Col) Cannondale-Drapac, at 2 secs
3. Fabio Aru (Ita) Astana, at 2 secs
4. Mikel Landa (Esp) Team Sky, at 5 secs
5. Louis Meintjes (RSA) UAE Team Emirates, at 7 secs
6. Daniel Martin (Irl) Quick-Step Floors, at 13 secs
7. Christopher Froome (GBr) Team Sky, at 22 secs
8. George Bennett (NZl) LottoNl-Jumbo, at 27 secs
9. Simon Yates (GBr) Orica-Scott, at 27 secs
10. Mikel Nieve (Esp) Team Sky, at 1-28
General classification after stage 12
1. Fabio Aru (Ita) Astana Pro Team, in 52-51-49
2. Christopher Froome (GBr) Team Sky, at 6 secs
3. Romain Bardet (Fra) Ag2r La Mondiale, at 25 secs
4. Rigoberto Uran (Col) Cannondale-Drapac, at 35 secs
5. Daniel Martin (Irl) Quick-Step Floors, at 1-41
6. Simon Yates (GBr) Orica-Scott, at 2-13
7. Mikel Landa (Esp) Team Sky, at 2-55
8. Nairo Quintana (Col) Movistar, at 4-01
9. George Bennett (NZl) LottoNl-Jumbo, at 4-04
10. Louis Meintjes (RSA) UAE Team Emirates, at 4-51
Thank you for reading 5 articles this month* Join now for unlimited access
Enjoy your first month for just £1 / $1 / €1
*Read 5 free articles per month without a subscription
Join now for unlimited access
Try first month for just £1 / $1 / €1
Henry Robertshaw began his time at Cycling Weekly working with the tech team, writing reviews, buying guides and appearing in videos advising on how to dress for the seasons. He later moved over to the news team, where his work focused on the professional peloton as well as legislation and provision for cycling. He's since moved his career in a new direction, with a role at the Department for Environment, Food and Rural Affairs.
EF Education-EasyPost and Israel-Premier Tech to race all-new Maryland Classic in September, one of just 4 UCI races in the US
A truly international field slated to attend America's newest UCI race
By Anne-Marije Rook • Published
Kristen Faulkner cools down after making a splash at the Giro Donne
The American headed straight for the sea to after winning the stage and taking the Giro Donne overall lead
By Owen Rogers • Published
'I'm trying to get back to my old self again' — Chris Froome achieves his best result since 2019 horror crash
Chris Froome finished 11th at the Mercan Tour Classic Alpes-Maritimes on Tuesday, his best result for almost three years
By Adam Becket • Published
Chris Froome: Being competitive at Tour de France would be a 'dream scenario'
The Israel-Premier Tech rider on being back at his normal level, appreciating his past, and aiming to have form late into the season
By Adam Becket • Published
Chris Froome set for 2022 race debut in Italy
The four-time Tour de France winner will return to racing at the Coppi e Bartali next week
By Richard Windsor • Published
Chris Froome claims 'racing has become more dangerous' due to 'abundance of data'
The Israel-Premier Tech rider suggests cycling performance has drastically improved since he became a professional, but not necessarily for the best
By Ryan Dabbs • Published
Chris Froome says time trials should be raced on road bikes to improve safety
The four-time Tour de France champion gives his thoughts in light of Egan Bernal's recent training crash
By Jonny Long • Published
'We need to see results from him': Israel-Start Up Nation expect Chris Froome's form to improve as they target a place among the super-teams
The four-time Tour winner will have to prove his form if he wants to be on the startline of the 2022 edition
By Chris Marshall-Bell • Published
Star-studded field set to ride the Deutschland Tour 2021
The German race has attracted a large amount of big-name riders who aren't riding the Vuelta a España
By Tim Bonville-Ginn • Published
Fabio Aru announces his retirement
The Grand Tour winner will close out his career at the end of the Vuelta a España
By Alex Ballinger • Published