The Marlins overtook the Mets on the scoreboard and in the standings on Saturday.
And for the second game in a row, Miami beat the Mets with a rookie pitcher making his first major league start.
Brian Anderson hit a two-run homer off Jacob deGrom and the Marlins climbed out of last place in the National League East by rallying past the reeling Mets, 5-2.
“We’re not in last place? Awesome,” said J.T. Riddle, whose scratch R.B.I. single put Miami ahead to stay.
The Mets (32-48) lost for the 10th time in 11 games and fell into last place for the first time this year.