ANAHEIM, Calif. (AP) — Carlos Perez capped his major league debut with a game-ending homer in the ninth, and the Los Angeles Angels snapped their four-game skid with a 5-4 victory over the Seattle Mariners on Tuesday night.

Erick Aybar and Johnny Giavotella delivered RBI singles off Danny Farquhar to tie it in the eighth for the Angels, who had blown a one-run lead earlier in the eighth.

Perez, a 24-year-old catcher from Venezuela, singled in his first major league at-bat. He then swung at the first pitch leading off the ninth from Dominic Leone (0-3), dropping it into the bullpens beyond the left-field fence.

Perez is the first major leaguer to hit a walkoff homer in his debut since Miguel Cabrera did it for the Marlins in June 20, 2003.