LaMonte Wade Jr. lined a single in front of sliding center fielder Myles Straw in the 10th inning to drive in Blake Sabol with the winning run, and the San Francisco Giants rallied past the Cleveland Guardians 5-4 on Monday night.

The comeback victory kept the Giants just 1½ games behind Arizona for the third NL wild card. San Francisco has won four straight following a six-game slide.

Cleveland dropped its third in a row and remained 7 1/2 games back of first-place Minnesota in the AL Central.

“They call him late-night LaMonte for a reason,” Sabol said. “What makes him such a special player is no matter what’s happening, whether he’s 0 for 4 or if he’s 4 for 4, he’s the same guy walking up to the plate. When he walked up there at the end, I felt pretty good.”

After the Guardians went ahead in the top of the 10th, San Francisco answered with two runs and won in its final at-bat for the sixth time this season.

Sabol, who entered as a pinch-hitter in the seventh, singled off All-Star closer Emmanuel Clase (2-9) to drive in Joc Pederson with the tying run.

After Sabol stole second and moved to third on a balk, Wade laced a line drive to short center that fell just in front of Straw. The crowd of 20,705 — the third-smallest at Oracle Park this season — roared as Giants players rushed onto the infield to celebrate.

The Guardians blew leads of 2-0 and 3-2 before going ahead 4-3 in the 10th on Andrés Giménez’s RBI single.

Naylor hit his ninth home run and had two RBI for Cleveland in the Guardians’ first appearance at Oracle Park since 2017. Naylor and his brother, Bo, each had two hits.

Josh Naylor doubled in his first at-bat, then turned on a splitter from starter Alex Cobb in the third and crushed it over the right-field wall into McCovey Cove.