(Inglewood) Dak Prescott had 272 passing yards and a touchdown, and the Dallas Cowboys beat the Los Angeles Chargers 20-17 on Monday night.

Prescott completed 21 of 30 passes and also had a rushing touchdown. He became the 30th quarterback in NFL history to throw a touchdown pass against 31 or more opponents when he picked off Brandin Cooks for two yards with 11:19 left in the game.

The touchdown gave the Cowboys a 17-10 lead.

The Chargers tied the game 17-17 with 7:11 left when Gerald Everett caught a 1-yard pass from Justin Herbert in the end zone.

Brandon Aubrey made two field goals, including a 39-yarder with 2:19 left to give the Cowboys the lead for good.

The Cowboys led 10-7 at halftime. Aubrey made a 32-yard field goal on the final play of the second quarter.

The Cowboys (4-2) had one last chance to send both teams to overtime, but Stephon Gilmore intercepted Herbert’s pass at the Chargers’ (2-3) 33-yard line with 1:22 left to confirm his team’s victory. On the previous play, Micah Parson made the quarterback sack against Herbert for a loss of eight yards.

The Cowboys, who lost 42-10 to the 49ers in San Francisco on Oct. 8, improved to 10-1 since the start of the 2021 season in games following a loss.

CeeDee Lamb had 117 yards on seven catches.

Herbert completed 22 of 37 passes for 227 yards, two touchdowns and one interception. Keenan Allen had 85 yards and a touchdown on seven receptions.

The Chargers scored a touchdown on their first offensive sequence for the second straight game and third time this season.

In eight NFL seasons, the 18-yard rushing touchdown was Prescott’s longest of his career. It was also the Cowboys’ longest by a quarterback since Jon Kitna’s 29 yards against the Lions in 2010.