In the bottom of the 11th, Derek Dietrich started off the inning with a double, and he advanced to third on a sacrifice bunt by Mike Aviles.
Dietrich would score the winning run when Miguel Rojas hit a sacrifice fly to right, which secured the Marlins 12th win in their last 15 games.
San Diego got off to a quick start when Cory Spangenberg stole home to put the Padres up 1-0 in the second inning.
The Marlins would tie it up in the fourth inning, when Marcell "Big Bear" Ozuna homered for the 31st time this season. That was the last run of the game until the 11th.
Odrisamer Despaigne was very solid for the Marlins, as he allowed one run and three hits over six innings.This was the first time he pitched six innings in the big leagues since 2015.
Despaigne was countered by Padres starter Dinelson Lamet, who allowed one run and four hits in six innings.
Four different Marlins relievers combined to allow zero runs while striking out seven Padres. Junichi Tazawa was awarded the win, while Jose Torres got the loss.
Former Marlin Brad Hand shut Miami down over two innings, including a tight rope act in the seventh when he escaped a first and third with no outs jam.
Ichiro recorded his 22nd pinch hit of the season, which is now the Marlins single-season record for most pinch hits.
The Marlins will look to sweep the Padres when they meet tomorrow afternoon at 1:10 p.m. Clayton Richard will start for the Padres, while Dan Straily will take the mound for the Marlins.
Kingfish: Drew Steckenrider (.236)
Flounder: J.T. Realmuto (-.367)
Play of the game: Miguel Rojas hit a sacrifice fly, Derek Dietrich scored (.174)