PITTSBURGH (AP) — Jose Bautista homered and had three hits as the Pittsburgh Pirates beat the Texas Rangers 7-5 on Tuesday night to snap a three-game losing streak.

Xavier Nady and Adam LaRoche also homered for the Pirates, who won their first interleague game of the season after getting swept by the New York Yankees.

Bautista led off the bottom of the first with a shot down the left field line just inside the foul pole. It was his fifth homer of the season and second career leadoff homer.

Pittsburgh added two more runs in the first when LaRoche’s double drove in Jason Bay and Xavier Nady’s base hit to center scored LaRoche.

Nady led off the fourth with his 11th homer of the season, driving the first pitch well over the wall in the deepest part of the park in left-center. Later that inning, Zach Duke reached on a throwing error by Michael Young and Bautista’s double to right field made it 3-0.

LaRoche’s eighth homer led off the fifth, and one batter later, Kevin Millwood (2-6) was lifted. He allowed six runs — five earned — on eight hits in 4 1-3 innings. He walked two and struck out one, and has not won since April 13.

The Rangers got plenty of baserunners against Duke (3-6), who entered the game having allowed more hits (104) than anyone in the majors. But poor baserunning kept Texas off the scoreboard.

Texas grounded into double plays in four of the first five innings and had a runner picked off in the fourth. Duke gave up two runs on eight hits in six innings. He struck out three and walked two.

The Rangers closed within 7-5 in the ninth on an RBI double from Brad Wilkerson and a base hit by pinch-hitter Adam Melhuse. But Matt Capps got Ramon Vazquez to line into a double play and struck out pinch-hitter Kenny Lofton for his third save in as many chances.