Jeff Samardzija homered and allowed four runs over 4 2-3 innings Monday in the Chicago Cubs' 7-5 win over the Arizona Diamondbacks 7-5.
Samardzija, prepping for an opening-day start at Pittsburgh on April 1, gave up four hits and two walks and struck out two. He hit a solo homer to center in the fifth against Eury De la Rosa that pulled the Cubs to 3-2.
Wellington Castillo tied the score 4-4 with a two-run homer off David Holmberg in the sixth, and Darwin Barney gave the Cubs a 6-4 lead with a two-run double against Holmberg in the seventh.
Adam Eaton hit a two-run homer in the third and is batting .400 (16 for 40).
Arizona starter Trevor Cahill allowed one run and three hits in four innings, walked none and struck out five, fanning the side in the second.