Florida's Marcell Ozuna hit a solo homer off the Cardinals reliever Scott McGregor in the sixth inning, giving the Marlins a 4-3 win on Thursday at Roger Dean Stadium in Jupiter. Fla.
Ozuna, whose shot to left came on a 2-0 pitch, hadn't had a hit in his last four games.
Down 3-0, the Cardinals tied the game with three runs in the top of the sixth inning.
Jhonny Peralta opened the inning with a single off Marlins ace Jose Fernandez. He scored when Daniel Descalso followed with a single.
Peter Bourjos followed with an RBI triple to right. He scored when Jon Jay reached on a bad-hop single.
Marlins second baseman Derek Dietrich was injured on the play when the ball changed directions and hit him in the face.
Cardinals starter Lance Lynn pitched four innings, allowing three runs on four hits while striking out five.
"The first two innings, we were doing what we wanted to do, moving the ball in and out," said Lynn on stlcardinals.com. "The next two innings, we started mixing in the breaking balls. The last inning, I got myself into a situation where I was going to throw a breaking ball for a strike no matter what, and I kept throwing it for a ball.
"For the most part, the fastball, cutter and changeup were right where I wanted to be, and the curveball wasn't today. That's the next pitch [to come], the one you need the most feel with, because it's got more of a break and things of that nature. It's coming."
Fernandez, 2013 National League Rookie of the Year, pitched six innings for Florida. He allowed three runs on five hits, while striking out eight and walking two.
He retired the first five he faced, including strikeouts of Allen Craig and Yadier Molina in the second inning. A single by Peralta in with two outs in the second accounted for the Cardinals' first hit.
After Peralta's single, Descalso drew a walk, but Fernandez ended the inning with a strikeout of Bourjos.
Adeiny Hechavarria tallied the game's first run when he singled off Lynn in the third and later scored when Dietrich hit into fielder's choice.
Miami added two more runs in the fourth, Jarrod Saltalamacchia connecting for an RBI double and Hechavarria driving in another with a single to make it 3-0.
Dietrich, who walked off the field holding a towel to his face after being hit by the ball hit by Jay, did not need stitches. He said he was day to day.
"They told me, 'Ice it up, take some Tylenol and see where we're at in the morning,"' said Dietrich, who was back at Roger Dean Stadium shortly after having X-rays at a local hospital.
"I was talking the whole time, but obviously was in some pain," he said. "I'm feeling okay and have no headaches. It could've been a lot worse."
Marlins manager Mike Redmond was relieved that Dietrich wasn't seriously injured.
"You don't want to see anyone get hurt this late in the spring but it looks like he'll be okay and it's just a matter of when we get him back out there."
Pitcher safety was a topic of conversation a day after Cincinnati closer Aroldis Chapman was hit by a line drive in a Cactus League game on Wednesday.
"It's a terrible thing and you never wish that on anybody," said Adam Wainwright, who will pitch opening day for the Cardinals. "He's one of the best pitchers in the game."
Wainwright, however, said you can't think about being hit in the head while out on the mound.
"One day we'll be playing with some kind of head gear, probably," Wainwright said. "It would have to be very sleek and the exact opposite of what they tried to introduce this year."
Fernandez said he heard about Chapman from Instagram and Twitter Thursday morning.
"This may sound funny but when I was warming up today I threw a first pitch for a strike and the second pitch I think, 'God I don't want to get hit,"' Fernandez said. "No, I never thought that before."
Cardinals: Mark Ellis remains sidelined with left knee tendinitis.
Marlins: Former Cardinals shortstop Rafael Furcal, still bothered by a left hamstring injury, is still several days from playing. ... Greg Dobbs remains out with a quadriceps injury.