FOXBOROUGH, Mass. — Tyreek Hill's remarkable night didn't produce a Chiefs victory.

Three touchdown receptions, all in the second half, allowed the Chiefs to stay with and at one point go ahead of the New England Patriots.

But the Patriots and quarterback Tom Brady prevailed in the end, taking a wild 43-40 triumph.

A Patriots field goal opened a 40-33 lead with 3:25 remaining. The Chiefs would have that much time to try to get the game tied.

They wouldn't need it.

It took one play to even things up. From the 25, Patrick Mahomes spotted Hill at about the 40. Hill was in space, and once he turned the corner was impossible to run down. Hill sprinted to the end zone to complete the 75-yard score.

Earlier in the half, Hill had scored on a 14-yard reception where he started on the left side and glided under Mahomes lob near the right corner.

That cut the Patriots' lead to 27-26 in the third quarter.

The Patriots extended the lead to 30-26, but a Tremon Smith 97-yard kickoff return got the Chiefs to the 3, where they faced a third-and-1.

Mahomes again lofted a pass in the end zone. It was headed toward running back Kareem Hunt at the goal line, but if that was the case the ball was overthrown.

Hill was behind Hunt and made a sliding catch to give the Chiefs a 33-30 lead.

The long touchdown completion gave Hill three touchdown receptions in a game for the first time. He's had a three-touchdown game as a rookie in 2016 at Denver, when he scored touchdowns by rushing, receiving and return. The Chiefs won that game in overtime.

For the night, Hill finished with 142 yards receiving, the third highest-total in his career.

The Patriots did a good job on Hill in the first half. Tight end Travis Kelce was a preferred target and Hill wound up with three catches for 43 yards before halftime.

The second half belonged to Hill and Mahomes, who became the first player in Chiefs history to surpassed 300 passing yards in five straight games. Mahomes finished 23 of 36 for 352 yards with four touchdowns and two interceptions.