PHILADELPHIA -- Starlin Castro nearly knocked himself out of the game before he knocked one out of the park.
"I just wanted an opportunity that inning," Castro said. "That guy (Hector Neris) is really good. I kept a good approach, looked for a fastball I can drive."
Marlins starter Caleb Smith gave up one run and three hits, striking out eight in six innings and five relievers pitched four scoreless innings.
"Every start I'm a little more comfortable," Smith said after lowering his ERA to 2.17.
But Castro connected off Neris (0-1) after Neil Walker lined a double off the left-field wall.
"We had people on base every inning," Castro said. "Walker had really good at-bats all night."
"It was a really nice team win," Marlins manager Don Mattingly said. "It's a black and blue division."
Phillies ace Aaron Nola allowed one run and seven hits in 6 2/3 innings in his best start since the season opener. Nola exited with runners on first and third, but Adam Morgan retired pinch-hitter Galloway on a fly to center.
"Really good sign for Nola," Phillies manager Gabe Kapler said. "Steps in the right direction. Still not his best. Still not his best curveball. But certainly moving in the right direction and looking more and more like himself."
Miami has won four of six, yet is tied with Kansas City for the worst record in the majors at 8-17.
The Phillies have lost six of eight after an 11-6 start.
Sean Rodriguez hit a solo homer to give the Phillies a 1-0 lead in the second.
GRIND IT OUT
J.T. Realmuto fouled off nine straight 3-2 pitches in the first before Smith struck him out on the 16th pitch of the at-bat. Phillies fans gave Realmuto a partial standing ovation for his effort.
FEELING THE PHILS
Jorge Alfaro was 2 for 5 and has multiple hits in each of his three games against the Phillies this season, batting .500 (6 for 12). Alfaro was traded to Miami in the deal that brought Realmuto to Philadelphia.
Marlins: OF/1B Garrett Cooper (left calf strain) was the designated hitter in an extended spring training game Thursday. He could start a rehab assignment on Friday, if he's cleared. ... RHP Riley Ferrell (right biceps tendinitis) threw a bullpen session Thursday.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
D-backs capitalize off Giants' errors in 5th inning
Kevin Cron sneaks a double past Pablo Sandoval to plate Adam Jones, Tim Locastro hits his 2nd double of the game, and the D-backs plate two on a Brandon Belt error at 1st.
Phillies get 4 HRs, strong outing by Arrieta to beat Brewers
Jake Arrieta pitched eight effective innings, Andrew McCutchen homered and the Philadelphia Phillies beat the Milwaukee Brewers 7-2 on Saturday.
Fiers, A's send Mariners to 5th straight loss, 6-5
Mike Fiers won in his first start at the Coliseum since pitching a no-hitter earlier this month and the Oakland Athletics beat Seattle 6-5 Saturday, sending the Mariners to their fifth straight loss.
Marte hits solo homer, Escobar follows up with double
Ketel Marte pummels a solo home run into left field, then Eduardo Escobar follows up with a double to left to plate Ildemaro Vargas.
Corbin pitches shutout in Nationals 5-0 win over Marlins
Patrick Corbin pitched a four-hit shutout, Yan Gomes hit a three-run double in the fourth inning and the Washington Nationals beat the Miami Marlins 5-0 on Saturday.
Padres rough up Jays behind club-record 7 HRs
Austin Hedges connected for a grand slam and the San Diego Padres hit a franchise-record seven home runs to romp past the Toronto Blue Jays 19-4 Saturday for their fifth straight win.