Updated

CINCINNATI (AP) Chris Anderson pitched shutout ball into the seventh inning and the Arizona Diamondbacks sent the Cincinnati Reds to their ninth straight loss, 4-0 Sunday.

Welington Castillo and David Peralta homered as Arizona completed its first four-game sweep over the Reds. Cincinnati matched its longest skid of the season.

Anderson (6-5) gave up five hits in 6 2-3 innings, walking three and striking out two. He was optioned to Triple-A Reno on Tuesday and recalled Thursday when Jeremy Hellickson went on the disabled list,

Relievers Addison Reed and Matt Reynolds finished up the shutout. Reynolds, coming back from Tommy John surgery, made his first big league appearance since June 2013.

Raisel Iglesias (3-5) struck out 13 in seven innings, the most by a Reds rookie since Gary Nolan fanned 15 Giants in 1967.

Iglesias allowed two runs, one of them earned, and three hits and three walks.

Castillo put Arizona ahead with a solo home run with two outs in the fourth. It was his 16th homer of the season and 14th since being acquired from Seattle in early June 3.

Castillo's line drive bounced out of the seats and back on to the field, prompting a 46-second crew chief review to make sure it was a home run.

Arizona capitalized on two errors on one play to make it 2-0 in the sixth. With Ender Inciarte on second, Paul Goldschmidt hit a chopper wide of first that Joey Votto caught backhanded, but his throw to Iglesias at first was low and literally booted by the pitcher for an error on the first baseman. Inciarte rounded third, and Iglesias' throw to the plate sailed over catcher Brayan Pena's head for the second error.

Peralta added a two-out, two-run homer in the eighth.

The Reds got runners to first and second with one out in the fifth, but Goldschmidt - playing in at first anticipating a bunt by Iglesias - made a backhand stab of the pitcher's line drive and beat Ryan LaMarre back to the bag for an inning-ending double play.

TRAINER'S ROOM

Diamondbacks: CF A.J. Pollock got the day off. He was 11 for 15 with a double, a home run, five runs and three RBIs in the first three games of the series.

Reds: Brennan Boesch was scratched from a start in right field because of a sore right ankle. He fouled a ball off it Saturday.

UP NEXT

Diamondbacks: LHP Robbie Day (3-9, 3.38) is set to start as the Diamondbacks go from facing the NL Central's last-place team to division-leading St. Louis in the opener of a four-game series at home.

Reds: What had been scheduled as a day off turned into the makeup of a game against Detroit postponed by rain from June 18. RHP Keyvius Sampson (2-2, 4.43), who wasn't with the Reds until July 30, is Cincinnati's scheduled starter.