Alexandre Lacazette scored twice as Arsenal came from behind at Emirates Stadium to win the first leg of their Europa League semi-final against Valencia.
Mouctar Diakhaby's header put Valencia in front before Lacazette slotted in Pierre-Emerick Aubameyang's pass.
The Frenchman nodded in Granit Xhaka's cross seven minutes later to make it 2-1 before half-time.
And Aubameyang's late volley ensured Arsenal take a two-goal lead to Spain.
Lacazette should have scored a hat-trick - he fluffed a header from six yards out in the second half and was later denied by goalkeeper Neto on two occasions.
But Arsenal will travel to Valencia for the second leg next Thursday, hoping to avoid a second successive semi-final defeat after they were knocked out by eventual winners Atletico Madrid last year.
Arsenal started sloppily in London and Ezequiel Garay's miss from a few yards out was an early warning.
They looked rattled, and things looked bleak for the Gunners when Rodrigo was allowed to head the ball back across goal to set up Diakhaby for the opener.
A loose header from Ainsley Maitland-Niles was almost pounced upon by Goncalo Guedes immediately afterwards but Lacazette's swift equaliser - which came against the run of play - helped settle the nerves.
He started the move himself, providing the through ball for Aubameyang before the Gabonese striker cut it back into the middle and Lacazette fired into an empty net.
The Frenchman was clinical again eight minutes later - powerfully nodding in Xhaka's curling cross at the back post - before Aubameyang's volley bounced off the turf and over the bar.
Valencia still caused Arsenal problems though. Rodrigo and Guedes were pests in attack and Petr Cech was called into action to deny Kevin Gameiro from close range in the second half.
Arsenal were wasteful, too - Lacazette missing two glorious chances before Aubameyang eventually made it 3-1 with a well-timed volley at the back post.
Pierre-Emerick Aubameyang has been involved in eight goals in 10 Europa League appearances this season
Arsenal's hopes of securing Champions League football next season have been lifted by this victory.
Three successive defeats have left Arsenal fifth in the Premier League - one place below Champions League qualification and two points below Chelsea with two games remaining.
Arsenal can of course reach the Champions League by winning this competition, but Chelsea could stand in their way again if they make it to final in Baku.
Manager Unai Emery has vast experience in the Europa League, having won it three years in a row with Sevilla in 2014, 2015 and 2016, and he will relish an opportunity to win silverware in his first season in England.
Victory in Spain will also see Arsenal through to their first European final since 2006.
Unai Emery's Sevilla side knocked Valencia out of the semi-finals of the Europa League in 2014
Arsenal striker Alexandre Lacazette: "We know it's going to be hard [in Valencia] so of course, getting as many goals as we could is better for us.
"I had two more chances where I could have done better but thankfully Aubameyang scored the third one. If we can go to Baku [for the Europa League final] it will be special."
Arsenal manager Unai Emery on BT Sport: "In the first leg we wanted to get a good result, knowing that it would be difficult. We took our moments and the goals in the first half gave us confidence.
"We wanted to win and not to concede a second goal, but we also had to play. The third goal came at the end and for us it was important, but [the tie] continues to be 50-50."
Forward Pierre-Emerick Aubameyang: "I hope that third goal will be important. We started a bit nervous because we lost the last three games, I think that's normal. We are human, but after that we had a good reaction.
"It's our target to reach the final and win this trophy. We will give everything to qualify for the Champions League."
Arsenal host Brighton in the Premier League on Sunday, 5 May before travelling to Spain for the second leg of their Europa League tie with Valencia on Thursday.
Valencia travel to Huesca in La Liga on Sunday.