CHICAGO — Dustin Pedroia, Hanley Ramirez and Jackie Bradley Jr. homered Thursday night to lead the Boston Red Sox to a 7-3 victory against the Chicago White Sox.

The Red Sox won for the ninth time in 11 games and took 2 of 3 in this series between AL division leaders, although this was anything but a thing of beauty.

The teams combined to strand 21 runners and draw 16 walks. But the East-leading Red Sox came up with enough big hits to prevail in a game that lasted 3 hours, 57 minutes.

Pedroia had three hits, starting with a solo homer in the first. Ramirez connected leading off a two-run third against Erik Johnson (0-1).

Bradley made it 5-3 after Chicago pulled within one with his solo drive off Matt Albers in the sixth.

David Ortiz capped a two-run eighth with an RBI double that boosted the lead to four, and reliever Matt Barnes (2-1) worked 12/3 scoreless innings for the win.

Avisail Garcia of the White Sox chased Henry Owens with a leadoff homer in the fourth. But Chicago dropped its second straight after winning 9 of 11.

Owens gave up two runs and two hits, walking six, and Johnson wasn’t much better for Chicago.

Johnson gave up four runs and eight hits in five innings. He struck out six and walked three.