Jenrry Mejia's spot in the rotation could be in question when Jon Niese once activated from the disabled list.

Mejia put together his second straight quality start, allowing three runs in six innings, but he and the New York Mets were beaten 3-2 by the Miami Marlins on Wednesday night.

"You see in the first couple of innings, he was behind a lot of counts, which is what he wasn't the other day," Mets manager Terry Collins said. "He got himself in a little bit of trouble, but he threw fine. He kept us in the game. He didn't let it get out of control. I liked what I saw for sure."

Mejia is 1-1 with a 2.08 ERA in two starts. He earned the win over Washington on Friday when the Mets beat the Nationals 11-0 in the opener of a doubleheader.

"I threw pretty good. It's just the first three innings I was throwing more balls," Mejia said. "But from the fourth inning on, I'm feeling good."

Jake Marisnick, a 22-year old outfielder, hit his first major league home run off Mejia in the second inning.

"It felt good," Marisnick said. "It was the first at-bat where I really slowed everything down."

Miami starter Henderson Alvarez (2-1) pitched into the eighth inning, as he allowed two runs and six hits in 7 1-3 innings. He also had two hits at the plate and scored a run.

"I felt I prepared well, and all of my pitches were working good," Alvarez said.

Alvarez is 2-0 with a 1.33 ERA in his last four starts.

Marisnick and Alvarez were acquired from Toronto along with shortstop Adeiny Hechavarria in November's blockbuster trade that sent veterans Jose Reyes, Mark Buehrle, Josh Johnson, John Buck, and Emilio Bonifacio to the Blue Jays.

"I think you realize how good of players we got in that trade and how much those guys are going to be a big part of not only this team this year, but the future," Marlins manager Mike Redmond said. "These guys can play."

Giancarlo Stanton and Placido Polanco also drove in a run each for the Marlins, who dropped the first two games of the four-game series with the Mets.

Mike Dunn got four outs for his second save in place of Steve Cishek, who pitched two innings and took the loss in Tuesday's 4-2 loss to New York.

Dunn issued a leadoff single to Buck in the ninth before retiring the next three batters to end the game.

"That was his inning," Redmond said. "We want him to go out there and not have a guy warming up in the bullpen behind him and let him take that inning and see what he could do and he did a great job."

Marisnick's home run gave the Marlins an early 1-0 lead. He was hitting .179 (5 for 28) in his first eight games before the home run.

"It was honestly the farthest thing from my mind," said Marisnick, who initially received the customary silent treatment from his teammates in the dugout after the home run.

Eric Young nearly matched Marisnick's homer in the third inning, but his long drive to center field hit the top of the fence and stayed in play. Umpires used video replay and upheld the original call, giving Young a triple. He was stranded at third base.

"I thought it came off the wall funny," Collins said. "That's why I went out. (Second base umpire) Andy Fletcher said, 'I know it came off the ball funny we'll take a look at it.'"

Redmond had no complaints about the call.

"I think they got it right," he said.

The Marlins added to their lead in the bottom half of the inning with back-to-back sacrifice flies by Polanco and Stanton that made it 3-0.

New York broke through against Alvarez with an RBI double by Ike Davis in the sixth. It was the first run allowed by Alvarez in 18 innings, the longest streak by a Marlins pitcher this season.