Lugo gave up three hits and a walk with four strikeouts over six innings to pick up the win and improve to 5-6.
The Marlins loaded the bases with one out on a Josh Bell single and a pair of walks.
Ha-Seong Kim opened the Padres' first with a double and scored on Juan Soto's one-out single to give San Diego a 1-0 lead.
Former Marlin Garrett Cooper scored the Padres' final run in the seventh after singling to open the inning in his first two-hit game as a Padre.
The win gave the Padres a 5-5 record in their longest homestand of the season.
Persons:
Seth Lugo, Xander Bogaerts, Lugo, Steven Wilson, Robert Suarez, Tom Cosgrove, Josh Hader, Josh Bell, Hader, Garrett Hampson, Yuli, Cy Young, Sandy Alcantara, Seong Kim, Juan Soto's, Manny Machado, Bogaerts, Marlin Garrett Cooper, Padre, Cooper, Fernando Tatis Jr
Organizations:
San Diego Padres, Miami Marlins, Marlins, Padres, Miami, Thomson
Locations:
San Diego, Alcantara