Updated

Dez Wells scored all 21 of his points in the second half and drilled a tiebreaking 3-pointer with 5.9 seconds left to carry Maryland past Miami 74-71 Wednesday night.

Limited to five minutes of playing time in the first half after picking up two quick fouls, Wells went 7-for-7 from the floor and 6-for-6 at the foul line over the final 20 minutes.

The Terrapins blew a 10-point lead over the final 2 ½ minutes before Wells connected from the top of the key, breaking the deadlock.

Maryland then fouled Manu Lacomte, who missed both free throws with 2.5 seconds remaining.

Jake Layman and Evan Smotrycz each tallied 15 points for Maryland, which won for only the second time in six games. Maryland (12-9, 4-4 Atlantic Coast Conference) trailed 55-54 with 8:37 remaining before Wells scored 10 points during a 15-4 run.

Miami (10-10, 2-6) has dropped four of five