Roy Halladay won his fourth straight start, Vernon Wells homered and the Toronto Blue Jays beat the Baltimore Orioles 5-4 on Sunday to snap a four-game losing streak.

Marco Scutaro drove in two runs for Toronto, which avoided a three-game sweep.

Luke Scott hit two homers for the Orioles, a solo shot in the second inning and a two-run drive in the sixth. It was the third multihomer game of his career.

Halladay (8-5) allowed four runs and eight hits in 7 2-3 innings and has not lost since May 9 at Cleveland, a span of six starts. He walked none and struck out seven.

Halladay is 17-4 with a 2.93 ERA in 27 games against Baltimore.

Scott Downs got one out in the eighth and B.J. Ryan worked the ninth for his 13th save in 15 opportunities. Ryan had blown his previous two chances, June 1 at the Los Angeles Angels and June 5 at Yankee Stadium.

Wells, activated from the disabled list Saturday after missing 26 games with a broken wrist, finished 3-for-4 and scored twice. He is 5-for-7 since returning.

Trailing 4-2, the Blue Jays scored three times in the sixth against reliever Matt Albers (3-2).

Wells led off with his sixth homer and Lyle Overbay walked and scored on Rod Barajas' double. Barajas moved to third on Brad Wilkerson's flyout, then scored on Scutaro's sacrifice fly.

Scott's second-inning homer gave Baltimore a 1-0 lead, but Toronto scored twice in the bottom half. Scutaro hit an RBI single and Wilkerson came home on the back end of a double steal, sliding in ahead of the throw from second baseman Brian Roberts.

The Orioles tied it at 2 on Melvin Mora's RBI single in the third, then went ahead 4-2 on Scott's second homer in the sixth.

Making his second start of the season, Baltimore's Radhames Liz allowed two runs and four hits in five innings. He walked three and struck out three.

Baltimore outfielder Jay Payton was ejected for arguing with plate umpire Bill Miller after being retired on a foul popup in the fourth. Barajas reached around the screen behind home plate and plucked Payton's popup out of the air just above the hands of a fan.

A frustrated Payton slammed his helmet and bat to the ground in anger, and had to be restrained by manager Dave Trembley as he argued with Miller. Payton was ejected when he continued arguing after walking away. Adam Jones took over in center field.

Notes:@ Toronto placed OF Shannon Stewart (sprained ankle) on the 15-day disabled list and recalled OF-INF Joe Inglett from Triple-A Syracuse. ... The Orioles wore black armbands on their left sleeve in honor of sportscaster and minority owner Jim McKay, who died Saturday.