BALTIMORE — Anthony Santander hit a game-ending two-run homer with two outs in the ninth inning, his 42nd longball of the season, and the Baltimore Orioles moved closer to a postseason berth with a 5-3 victory over the San Francisco Giants on Thursday.
''That's a reminder of who we are,'' Santander said of an Orioles team that's nearly assured of a playoff spot but mired in a rough patch. ''A close game, and then we stay positive, we stay together.''
Santander's shot off Ryan Walker (9-4) came after Casey Schmitt tied the game at 3-all with a single off Seranthony Domínguez in the top of the ninth.
The walk-off homer landed a few feet over the front of the grounds crew shed in right-center to end an afternoon that began with Baltimore having lost three in a row and eight of 10. The Orioles (85-68) moved three games ahead of idle Kansas City for the top AL wild card and pulled within four games of the AL East-leading New York Yankees, who lost at Seattle.
''I was like this: ‘Huff, huff, huff, keep going please,'" Santander said while making a blowing gesture. ''I hit it good with the barrel, but too high. I was hopeful that that ball kept going. And thankfully it did."
The Giants (74-79) were eliminated from playoff contention.
Gregory Soto (3-5) induced a quick double play in relief of Domínguez to keep the game tied.
Adley Rutschman had an RBI double and Jackson Holliday drove in two runs with a two-out single to complete a three-run fourth for Baltimore. Michael Conforto's 18th home run gave San Francisco a 2-0 lead in the top half.