Arsenal finished their Europa League Group B campaign with a 100% record as they overcame Dundalk in muddy conditions at the Aviva Stadium.
Eddie Nketiah gave the Gunners the lead when he clipped his shot past Gary Rogers after an error by Andrew Boyle.
Mohamed Elneny doubled the advantage with a superb strike before Jordan Flores made it 2-1 with an angled shot.
Joe Willock and Folarin Balogun scored late on for the Gunners before Sean Hoare grabbed a second for Dundalk.
“Today’s performance was overall positive because we won the game,” Gunners boss Mikel Arteta told the club website.
“However, we had some moments after scoring the first two goals where we were a little bit disconnected and we got a little bit confused by what the game required.”
His side’s form in Europe is in stark contrast with their three defeats and a draw in the past four Premier League matches.
The Spaniard added: “Now we have to forget about the Europa League because that’s in February.
“Now we need everybody on board – we obviously have a large squad at the moment with players back from injury, so we’ll have the opportunity to pick who is better in the moment and still rotate some players.
“It gives us more options in the Premier League, to focus there and try and get the results we need.”