PHILADELPHIA — Jonathan Loaisiga took a no-hitter into the sixth inning, Aaron Judge ripped his 20th homer and the New York Yankees snapped a three-game losing streak with a 4-2 victory over the Philadelphia Phillies on Monday night.

Loaisiga (2-0) didn’t allow a hit until Jorge Alfaro lined a single to right leading off the sixth. He struck out eight in 51/3 innings, throwing 86 pitches in his third start after jumping from Double-A to the majors.

The Yankees, who were swept by the Tampa Bay Rays over the weekend, haven’t lost four in a row this season and own the best record in baseball (51-25).

Making their first appearance at Citizens Bank Park since beating the Phillies in six games in the 2009 World Series, it felt like home for the Yankees. The sellout crowd of 44,136 was filled with fans cheering for the Bronx Bombers.

Philadelphia’s Vince Velasquez (5-8) allowed two runs and three hits, striking out seven in six innings. He’s given up three runs or fewer in 11 of 16 starts.

RAYS 11, NATIONALS 0: Blake Snell took a no-hitter into the seventh inning, Kevin Kiermaier hit a grand slam and Tampa Bay beat Washington in St. Petersburg, Florida.

Wilson Ramos homered twice and rookie Jake Bauers had four hits in the Rays’ fourth straight win.

Snell (10-4) walked Trea Turner and Bryce Harper to open the game before retiring 18 straight, striking out five straight at one point. Anthony Rendon doubled off the left-field wall on a 3-1 pitch leading off the seventh for the first of Washington’s two hits.

AMERICAN LEAGUE

ATHLETICS 5, TIGERS 4: Jed Lowrie hit a tie-breaking solo homer in the top of the ninth inning to lift Oakland to a win in Detroit on a historic day for Athletics starter Edwin Jackson.

Jackson allowed a run and six hits in six innings in his first appearance for the A’s, tying a record by playing for his 13th major league team. Called up from Triple-A, the 34-year-old righty matched the mark for most clubs set by former reliever Octavio Dotel.

MARINERS 5, ORIOLES 3: Dee Gordon’s slick seventh-inning bunt was the lone hit in a two-run uprising that put Seattle ahead for good, and the Mariners won in Baltimore.

Denard Span homered for the Mariners, who benefited from 10 walks and a pivotal wild pitch to get back on track after losing successive series at Yankee Stadium and in Boston.

Gordon gave the Mariners an early lead with a two-run single, then provided the key hit in a seventh inning that began with score tied at 3.

ROYALS 2, ANGELS 0: Brad Keller pitched seven innings of two-hit ball, Lucas Duda and Rosell Herrera drove in the only runs and Kansas City won at home in the makeup of a game that was frozen out in April.

Kevin McCarthy struck out Chris Young and retired Ian Kinsler to strand a runner on third base in the eighth, and Wily Peralta ended the three-hitter by working around Albert Pujols’ single in the ninth.

It was the first save for the longtime starter in 136 career big league games.

Keller (2-2) struck out six and walked two in his fifth career big league start.

NATIONAL LEAGUE

MARLINS 9, DIAMONDBACKS 5: Brian Anderson and Cameron Maybin each drove in two runs to help spoil Shelby Miller’s return to the mound after missing over a year for Tommy John surgery as Miami won at home.

Dan Straily (3-3) pitched effectively while appealing a five-game suspension for intentionally throwing a pitch at the San Francisco Giants’ Buster Posey on June 19. Straily allowed three runs in 61/3 innings for the Marlins.

Justin Bour hit his 13th home run for Miami, which won its third straight.