LOS ANGELES (AP) Dee Gordon and Martin Prado drove in the tying and go-ahead runs with consecutve two-out singles in the seventh inning, and the Miami Marlins got home runs from Giancarlo Stanton and J.T. Realmuto to beat the Los Angeles Dodgers 5-3 on Thursday night to complete a four-game sweep.

Jose Fernandez (2-2) allowed two runs and five hits in six innings, striking out eight and walking three. The right-hander was lifted for a pinch-hitter during the Marlins' pivotal three-run rally.

Kenta Maeda (3-1) was charged with four runs and seven hits over 6 2-3 innings in his fifth big league start, after allowing just one run in 25 2-3 innings.

More from FoxSports