Nathan Eovaldi and David Phelps, involved in a December deal between the Yankees and Marlins, faced each other Tuesday night and it was embarrassingly one-sided, as the Yankees fell, 12-2, in front of 33,083 fans at Marlins Park.

Eovaldi, a hard-throwing but underperforming righty in his career, was the centerpiece of the deal from the Yankees' perspective. He lasted two-thirds of an inning, rocked for nine hits and eight runs.

"Frustration,'' Eovaldi said of walking off the mound after the shortest outing of his career. "I've been looking forward to this start. Not making it through an inning, it's extremely frustrating and hurts the team.''

The eight runs were a franchise high in a first inning for the Marlins, who totaled 16 hits. They sent 12 batters to the plate and reeled off seven straight hits after Eovaldi (5-2, 5.12 ERA) retired the leadoff man.

"Balls were up tonight,'' catcher Brian McCann said. "And they made us pay.''

The blowout closed a lousy trip in which the Yankees (34-30) went 1-4 against the Orioles and Marlins (29-37).

The Yankees remained one game behind the Rays in the AL East. They have lost five of six after a seven-game winning streak, which followed a stretch of 10 losses in 11 games.

"It's a game of ups and downs, and unfortunately it seems like we've had a couple highs and some real low lows,'' Brett Gardner said. "It's definitely frustrating when you go through that.''

The manager didn't hide his frustration with the latest low.

"We haven't played well, we have not pitched well, we have not swung the bats,'' Joe Girardi said. "Hopefully, going home will be good medicine for us.''

Phelps (4-3, 3.96), a righthander sent to Miami along with Martin Prado for Eovaldi, Garrett Jones and minor-league pitcher Domingo German, allowed two runs and six hits in seven innings against the team that drafted him in 2008 in the 14th round.

Phelps led 11-0 -- Giancarlo Stanton hit his 24th homer, a three-run shot off Chris Martin in the fifth -- before the Yankees scored in the sixth. Didi Gregorius singled with two outs, Mark Teixeira walked, and McCann drove in Gregorius. Mason Williams' RBI double in the seventh made it 11-2.

Derek Dietrich, whose homer off Masahiro Tanaka beat the Yankees Monday night, singled to start the first-inning carnage. Christian Yelich followed with a slow chopper that shortstop Gregorius bobbled (it was scored a hit). Stanton chopped one behind third base that Chase Headley fielded but had no play, loading the bases.

"He still has to make pitches,'' Girardi said of Eovaldi's need to overcome Gregorius' mistake. "He just wasn't able to.''

Marcell Ozuna poked a 99-mph fastball through the right side for a two-run single. Justin Bour singled in Stanton, and J.T. Realmuto brought in Ozuna with a shot to right on a 97-mph fastball. Adeiny Hechavarria hammered a first-pitch slider into the gap in left-center. The ball glanced off Chris Young's glove for a two-run triple that made it 7-0. Gordon's RBI single ended Eovaldi's night.

"It's our job to come back and try and scratch away and score some runs,'' Gardner said. "We didn't do much of that.''