Hyun-Jin Ryu pitched seven strong innings and combined with Kenta Maeda and Kenley Jansen to help the Los Angeles Dodgers beat the Miami Marlins 2-1 Friday night.

Playing at Dodger Stadium for the first time since the All-Star break, the NL West leaders turned a Miami error into the go-ahead run in the sixth.

Ryu (11-2), who started for the National League in the All-Star game, gave up one run on four hits with three walks and seven strikeouts.

Los Angeles Dodgers relief pitcher Kenta Maeda, of Japan, throws during the eighth inning of the team's baseball game against the Miami Marlins on Friday, July 19, 2019, in Los Angeles. (AP PhotoMark J. Terrill)

Los Angeles Dodgers relief pitcher Kenta Maeda, of Japan, throws during the eighth inning of the team's baseball game against the Miami Marlins on Friday, July 19, 2019, in Los Angeles. (AP PhotoMark J. Terrill)

Maeda took over for Ryu in the eighth, his first relief appearance this season. Maeda is expected to return to the rotation, but he was used out of the bullpen this time after a 35-pitch, rain-shortened start Wednesday at Philadelphia.

Maeda delivered a scoreless eighth inning with two strikeouts and Jansen finished off his 24th save in 28 chances with three strikeouts. It was his first appearance since blowing a two-run lead in the ninth inning and taking the loss in a 9-8 defeat to the Phillies on Tuesday.

The Dodgers had lost three in a row at home. They began the second half with a seven-game trip to Boston and Philadelphia.

Los Angeles Dodgers relief pitcher Kenley Jansen throws to the plate during the ninth inning of a baseball game against the Miami Marlins Friday, July 19, 2019, in Los Angeles. (AP PhotoMark J. Terrill)

Los Angeles Dodgers relief pitcher Kenley Jansen throws to the plate during the ninth inning of a baseball game against the Miami Marlins Friday, July 19, 2019, in Los Angeles. (AP PhotoMark J. Terrill)

On a sluggish offensive night, the Dodgers took the lead with a two-run sixth after loading the bases with one out. Corey Seager drove in the first run with a grounder and another scored on a two-out error by second baseman Starlin Castro.

Enrique Hernandez's sharp grounder right at Castro went in and out of the glove of the veteran and rolled into shallow right field, allowing Justin Turner to score from third base.

Marlins rookie right-hander Zac Gallen held the powerful Dodgers offense in check through five innings, but loaded the bases in the sixth on a single by Alex Verdugo and walks to Turner and A.J. Pollock before he was removed from the game.

Miami Marlins second baseman Starlin Castro reaches for a ball hit by Los Angeles Dodgers' Enrique Hernandez after bobbling it during the sixth inning of a baseball game Friday, July 19, 2019, in Los Angeles. Hernandez was safe at first, Justin Turner scored and Castro was charged with an error on the play. (AP PhotoMark J. Terrill)

Miami Marlins second baseman Starlin Castro reaches for a ball hit by Los Angeles Dodgers' Enrique Hernandez after bobbling it during the sixth inning of a baseball game Friday, July 19, 2019, in Los Angeles. Hernandez was safe at first, Justin Turner scored and Castro was charged with an error on the play. (AP PhotoMark J. Terrill)

In his fifth career start, Gallen (0-2) gave up two runs, one of which was earned, on three hits over 5 1/3 innings, with four walks and five strikeouts.

TRAINER'S ROOM

Marlins: RHP Drew Steckenrider, out since May 7 with right elbow inflammation, threw a 25-pitch bullpen session. . RHP Pablo Lopez, out since June 16 with a right shoulder strain, threw a 20-pitch bullpen session. . Utilityman John Berti, out since May 19 with a left obliqe strain, could head out on minor league rehab assignment in the coming days.

Dodgers: RHP Dylan Floro was placed on the 10-day injured list with neck inflammation and RHP Casey Sadler was recalled from Triple-A Oklahoma City.

UP NEXT

Marlins: RHP Sandy Alcantara (4-9), who will make his first career appearance against the Dodgers, has taken the loss in each of his last three outings, posting a 6.11 ERA in 17 2/3 innings over that stretch.

Dodgers: LHP Clayton Kershaw (8-2) will enter Saturday's start having given up just one earned run in each of his last two outings and has five outings of one earned run or less this season.

More AP MLB: https://apnews.com/tag/MLB and https://twitter.com/AP_Sports