Victor Caratini hit a two-run, game-ending homer two batters after Eric Hosmer hit a tying, two-run homer for the San Diego Padres, who beat the Cincinnati Reds in a 6-4 thriller Thursday night before the first sellout crowd at Petco Park since 2019.

Fernando Tatis Jr. and Manny Machado also homered on what was billed as “San Diego's Opening Day” to celebrate the ballpark returning to full capacity following the state's reopening plan that went into effect Tuesday.

More Images
A giant United States flag is displayed during the national anthem prior to a baseball game between the San Diego Padres and the Cincinnati Reds, Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Victor Caratini hit a two-run, game-ending homer two batters after Eric Hosmer hit a tying, two-run homer for the San Diego Padres, who beat the Cincinnati Reds in a 6-4 thriller Thursday night before the first sellout crowd at Petco Park since 2019.

San Diego Padres' Fernando Tatis Jr. celebrates as he runs the bases on a solo home run against the Cincinnati Reds during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Machado drew a leadoff walk against Ryan Hendrix and Hosmer homered with one out. Amir Garrett (0-2) came on and allowed Jake Cronenworth's single and then Caratini's shot into the left-field seats. It was Hosmer's sixth homer and Caratini's fifth.

Cincinnati Reds' Jonathan India, right, celebrates with Tyler Stephenson (37) after hitting a two-run home run in the ninth inning of the team's baseball game against the San Diego Padres on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

The Padres took a 2-0 lead into the ninth after Tatis and Machado homered off Wade Miley. Melancon was one out away from his big league-leading 20th save before he melted down against the red-hot Reds.

San Diego Padres' Fernando Tatis Jr. watches his solo home run off Cincinnati Reds starting pitcher Wade Miley during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Pierce Johnson (2-2) got the win.

San Diego Padres' Fernando Tatis Jr. rounds second base after hitting a solo home run during sixth inning of a baseball game against the Cincinnati Reds on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Machado hit a monster shot into the second deck in left-center off Miley leading off the seventh, his 10th.

San Diego Padres' Fernando Tatis Jr. watches his solo home run off Cincinnati Reds starting pitcher Wade Miley during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Fans were no doubt a bit nervous as Miley retired 13 straight batters from the first to fifth inning. Until Tatis' home run, the only baserunners Miley allowed were on walks to Tatis in the first and Cronenworth in the fifth.

Fans stand up to cheer a home run by San Diego Padres' Fernando Tatis Jr. against the Cincinnati Reds during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

FLASH THE LEATHER

Cincinnati Reds' Jonathan India watches his two-run home run off San Diego Padres relief pitcher Mark Melancon during the ninth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Padres: Tingler said LHP Drew Pomeranz (left shoulder impingement) threw a bullpen and that C Austin Nola is making progress in his recovery from a sprained left knee. Pomeranz has been on the injured list since May 10 and Nola since May 25.

San Diego Padres' Joe Musgrove, left, dumps water onto Eric Hosmer during an interview after the Padres defeated the Cincinnati Reds in a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

More AP MLB: https://apnews.com/hub/MLB and https;//twitter.com/AP_Sports

San Diego Padres relief pitcher Mark Melancon reacts after being removed in the ninth inning of the team's baseball game against the Cincinnati Reds on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

San Diego Padres relief pitcher Mark Melancon reacts after being removed in the ninth inning of the team's baseball game against the Cincinnati Reds on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

But the Padres had to work for this one after the Reds rallied for four runs in the ninth against closer Mark Melancon, including a go-ahead, two-run homer by rookie Jonathan India.

A giant United States flag is displayed during the national anthem prior to a baseball game between the San Diego Padres and the Cincinnati Reds, Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

A giant United States flag is displayed during the national anthem prior to a baseball game between the San Diego Padres and the Cincinnati Reds, Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Machado drew a leadoff walk against Ryan Hendrix and Hosmer homered with one out. Amir Garrett (0-2) came on and allowed Jake Cronenworth's single and then Caratini's shot into the left-field seats. It was Hosmer's sixth homer and Caratini's fifth.

The Padres won for just the second time in nine games. They were coming off a 1-5 trip to New York and Colorado, including a three-game sweep by the Rockies, that manager Jayce Tingler described as “just terrible.”

The Reds saw their six-game winning streak snapped.

San Diego Padres' Fernando Tatis Jr. celebrates as he runs the bases on a solo home run against the Cincinnati Reds during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

San Diego Padres' Fernando Tatis Jr. celebrates as he runs the bases on a solo home run against the Cincinnati Reds during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

The Padres took a 2-0 lead into the ninth after Tatis and Machado homered off Wade Miley. Melancon was one out away from his big league-leading 20th save before he melted down against the red-hot Reds.

Joey Votto started the Reds' rally with a leadoff single and Tucker Barnhart doubled. Kyle Farmer had an RBI groundout before pinch-hitter Tyler Stephenson tied it with a two-out single.

India homered to give the Reds a 4-2 lead and quiet the crowd. It was his sixth.

Cincinnati Reds' Jonathan India, right, celebrates with Tyler Stephenson (37) after hitting a two-run home run in the ninth inning of the team's baseball game against the San Diego Padres on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Cincinnati Reds' Jonathan India, right, celebrates with Tyler Stephenson (37) after hitting a two-run home run in the ninth inning of the team's baseball game against the San Diego Padres on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Pierce Johnson (2-2) got the win.

Miley, who threw his first career no-hitter at Cleveland on May 7, had frustrated the struggling Padres until Tatis hit a high-arcing shot that just cleared the wall in left-center for San Diego's first hit with two outs in the sixth. The star shortstop dropped his bat and began his trot after sending the crowed of 40,362 into a frenzy.

It was the 22nd for Tatis, tying his career high set as a rookie in 2019 and matching Vladimir Guerrero Jr. for the major league lead. Tatis was limited to 84 games as a rookie due to injuries.

San Diego Padres' Fernando Tatis Jr. watches his solo home run off Cincinnati Reds starting pitcher Wade Miley during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

San Diego Padres' Fernando Tatis Jr. watches his solo home run off Cincinnati Reds starting pitcher Wade Miley during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Machado hit a monster shot into the second deck in left-center off Miley leading off the seventh, his 10th.

Joe Musgrove, who threw the first no-hitter in the history of his hometown Padres on April 9 at Texas, had been in line for the victory before Melancon's meltdown.

The Padres treated this game like a real opening day by hanging bunting and introducing both teams before the game. A giant American flag was unfurled by 275 U.S. Navy sailors prior to the national anthem and there was a flyover of F/A-18 Hornets from Marine Corps Air Station Miramar.

San Diego Padres' Fernando Tatis Jr. rounds second base after hitting a solo home run during sixth inning of a baseball game against the Cincinnati Reds on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

San Diego Padres' Fernando Tatis Jr. rounds second base after hitting a solo home run during sixth inning of a baseball game against the Cincinnati Reds on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Fans were no doubt a bit nervous as Miley retired 13 straight batters from the first to fifth inning. Until Tatis' home run, the only baserunners Miley allowed were on walks to Tatis in the first and Cronenworth in the fifth.

Musgrove held the Reds to four singles in seven innings, struck out two and walked three.

Miley allowed two runs and four hits seven-plus innings, struck out five and walked two.

San Diego Padres' Fernando Tatis Jr. watches his solo home run off Cincinnati Reds starting pitcher Wade Miley during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

San Diego Padres' Fernando Tatis Jr. watches his solo home run off Cincinnati Reds starting pitcher Wade Miley during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

FLASH THE LEATHER

Hosmer made a nifty play at first base to start a double play in the first inning. After India drew a leadoff walk, Hosmer fielded Jesse Winker's chopper, stepped on first, wheeled and threw to Tatis, and the shortstop tagged out India. ... In the seventh, Machado, moving from third base to shallow right in a shift, ran down Barnhart's ball and made a sensational off-balance throw to get him at first. Machado made a great diving effort trying to track down a fly ball by Winker in deep right in the eighth but it fell in just beyond his glove for a double.

TRAINER'S ROOM

Fans stand up to cheer a home run by San Diego Padres' Fernando Tatis Jr. against the Cincinnati Reds during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Fans stand up to cheer a home run by San Diego Padres' Fernando Tatis Jr. against the Cincinnati Reds during the sixth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Padres: Tingler said LHP Drew Pomeranz (left shoulder impingement) threw a bullpen and that C Austin Nola is making progress in his recovery from a sprained left knee. Pomeranz has been on the injured list since May 10 and Nola since May 25.

UP NEXT

RHP Tony Santillan (0-0, 1.93) of the Reds and RHP Chris Paddack (3-5, 4.14) of the Padres are scheduled to start Friday night in the second game of the four-game series. Santillan will be making his second big league appearance. He made his debut Sunday at Colorado and left leading 3-1 with the bases loaded and two outs in the fifth. Ryan Hendrix came on and struck out Dom Nuñez to end the inning.

Cincinnati Reds' Jonathan India watches his two-run home run off San Diego Padres relief pitcher Mark Melancon during the ninth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

Cincinnati Reds' Jonathan India watches his two-run home run off San Diego Padres relief pitcher Mark Melancon during the ninth inning of a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

More AP MLB: https://apnews.com/hub/MLB and https;//twitter.com/AP_Sports

San Diego Padres' Joe Musgrove, left, dumps water onto Eric Hosmer during an interview after the Padres defeated the Cincinnati Reds in a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

San Diego Padres' Joe Musgrove, left, dumps water onto Eric Hosmer during an interview after the Padres defeated the Cincinnati Reds in a baseball game Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

San Diego Padres relief pitcher Mark Melancon reacts after being removed in the ninth inning of the team's baseball game against the Cincinnati Reds on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)

San Diego Padres relief pitcher Mark Melancon reacts after being removed in the ninth inning of the team's baseball game against the Cincinnati Reds on Thursday, June 17, 2021, in San Diego. (AP PhotoDerrick Tuskan)