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
'Tonight was vintage Anibal': How the overlooked Nationals starter flipped the NLCS
Anibal Sanchez's bid to make history gave Washington a Game 1 win and a reminder that he's a reason the Nationals reached the NLCS.
Source: Johnny Washington among candidates for Angels' job
Johnny Washington, the 35-year-old hitting coach for the San Diego Padres, is among the candidates for the Los Angeles Angels' managerial vacancy, a source confirmed to ESPN on Friday.
Nats' Scherzer aims to keep Cards down in Game 2
The Washington Nationals gained the early National League Championship Series edge over the St. Louis Cardinals, and they will look to build on it behind Max Scherzer in Game 2.
Cardinals Game 1 starter Miles Mikolas says gesture mimicking Nationals OF Juan Soto was 'good-natured'
Cardinals pitcher Miles Mikolas had fun with Juan Soto's batting routine by mimicking one of his gestures after getting the Nationals outfielder to ground out.
Sanchez: It's good people don't pay attention to me
Anibal Sanchez says he's glad people pay more attention to Max Scherzer, Stephen Strasburg and Patrick Corbin because he can fly under the radar and perform better.
Howard: The scales have tipped in Washington's favor
Ryan Howard breaks down what was working for Anibal Sanchez in the Nationals' Game 1 win and believes they have all the momentum to win the series.