MADISON, Wis. -- Nigel Hayes scored 14 of his 21 points in the second half, Ethan Happ had 20 points and No. 11 Wisconsin beat No. 23 Maryland 71-60 in a choppy, foul-filled game on Sunday.
The Badgers (22-5, 11-3) overcame 27 points from Terrapins guard Melo Trimble to snap a two-game losing streak and stay in a tie atop the Big Ten with Purdue.
Bronson Koenig scored all nine of his points in the second half, giving the Badgers a lift with his jump shot after the senior missed a game with a left calf injury. Wisconsin shot 51 percent in the second half.
Wisconsin pulled away slowly, turning a six-point halftime deficit into a 12-point edge with 3 minutes to go in a game that lacked flow because of frequent whistles.
The teams combined for 48 fouls, 25 for Maryland (22-5, 10-4).
For a while, it looked like Trimble would carry Maryland to another road win all by himself. He finished 9 of 17 from the field and regularly hit 3s from the wing.
But the Badgers held on despite Happ spending much of the second half on the bench saddled with four fouls.
Hayes took up the slack with an active day in the paint, grabbing 10 rebounds.
Freshman Brevin Pritzl added seven points and seven rebounds, giving Wisconsin an energy boost off the bench.
After Trimble, Michael Cekovsky was the only other Maryland player in double figures with 10 points.