The Mariners' Justin Smoak hit his fourth homer of the spring and the Cubs' Alfonso Soriano also hit his fourth as the Mariners' winning streak was halted at six games.
Mariners right-hander Jon Garland, pitching for the last time before an opt-out clause in his Minor League contract kicks in, got off to a rough start, but recovered nicely to pitch into the middle innings while the bats gave him an early 1-0 lead. But Samardzija's opposite-field homer to right with one out in the third got the Cubs on the board.
The Mariners bounced right back with a pair of runs in the bottom half of the inning, which began with an error by Cubs second baseman Alberto Gonzalez that put leadoff man Michael Saunders on base. Robert Andino followed with a double that put runners on second and third before Raul Ibanez knocked a run in with a single and Justin Smoak knocked in a second run with a sacrifice fly.
But the Cubs rallied with four consecutive hits off Ramirez, with Darnell McDonald driving home the tying run with a single through the left side of the infield.
"He did a good job of getting ahead, but he didn't finish hitters off," Mariners manager Eric Wedge said of Ramirez, who allowed four earned runs on six hits in two innings of work. "That's just something that he has to do a better job with. He's been throwing the ball well this spring, but tonight, for whatever reason, he just wasn't finishing pitches off when he was ahead in the count and he got hurt by it."
After David DeJesus led off the game with a double, Garland retired the next seven batters before Samardzija's homer. Garland wound up allowing two runs on five hits in six innings of work, walking one and striking out three.
Samardzija, who is scheduled to make one more start before making his first career Opening Day start, allowed four runs (three earned) on nine hits and struck out seven while throwing 93 pitches.
Up Next: Felix Hernandez will be making the start Friday night as the Mariners play their second consecutive, and final, night game of the spring. Hernandez is 0-1 with a 3.60 ERA in his first two starts. He figures to be joined in the lineup with regulars including outfielders Michael Morse and Michael Saunders.
John Schlegel is a national reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.