EAST RUTHERFORD, N.J. — What else did you expect?

The New England Patriots and New York Giants played another classic, again coming down to the final seconds.

In a game of huge momentum swings, the Patriots remained unbeaten when Stephen Gostkowski kicked a 54-yard field goal with one second remaining to beat the Giants 27-26 at MetLife Stadium.

The Patriots (9-0) took over at their 20 and drove to the Giants 36, converting a fourth-and-10 from their 20 to keep the drive going on an 11-yard completion from Tom Brady to Danny Amendola.

Brady completed 26 of 42 passes for 334 yards and two touchdowns. Eli Manning completed 24 of 44 for 316 yards and two touchdowns.

The Patriots, leading 24-23, appeared to score a touchdown but had it called back on a holding penalty on center David Andrews. Three plays later, Brady was intercepted at the 1 by Trumaine McBride. Brady’s pass was behind Brandon LaFell and McBride made a diving catch, then returned it two yards to the three.

From there, the Giants (5-5) drove 86 yards in 15 plays, converting three third downs, to take a 26-24 lead on a 29-yard field goal by Josh Brown with 1:48 remaining.

Amendola gave the Patriots a jolt in the third quarter to wake up the Patriots, who were trailing 20-10 and lethargic.

After the defense forced a punt, Amendola returned it 82 yards – getting key blocks from Eric Martin and Nate Ebner – but didn’t score because he tripped over teammate Duran Harmon and was tackled at the 7.

No problem, after a pass interference call against the Giants in the end zone, LeGarrette Blount pushed in from the 1 with 4:46 left in the third quarter and it was 20-17, New York.

The Patriots regained the lead at 24-23 with 11:33 remaining when Brady hit Rob Gronkowski for a 76-yard touchdown pass. Two Giants collided at the New York 40, allowing Gronkowski free access to the end zone.

The Patriots began fast, taking the opening kick-off and moving 80 yards in 14 plays to take the lead on a 1-yard touchdown pass from Brady to Scott Chandler in the back of the end zone. LeGarrette Blount ran for 29 yards on that drive, but was held in check after.

It took the Giants all of 51 seconds to tie it as Manning threw an 87-yard touchdown pass to Odell Beckham Jr., who got behind Malcolm Butler, then cut in on Devin McCourty to break away.

But the Patriots offense sputtered after Julian Edelman hobbled off the field after catching a 12-yard pass on the last play of the first quarter. New England would get a 31-yard field goal from Gostkowski on that drive to move ahead 10-7.

But the Giants went to an up-tempo, no-huddle offense against a Patriots defense that was missing linebacker Jamie Collins for the second straight game. They would tie it on a 37-yard field goal by Josh Brown.

Then New York got the ball with 69 seconds left in the first half and used 56 of them to take the lead on a 1-yard touchdown pass from Manning to Dwayne Harris in the left corner of the end zone. Patriots defender Justin Coleman slipped while covering Harris.