Washington: John Wall scored 22 points, Nene added 21 and the Washington Wizards ended their six-game losing streak with a 99-95 win over the Detroit Pistons on Saturday night.

The Wizards, who had lost 11 of 13, won despite blowing a 21-point second-half lead. Marcin Gortat scored 16 points and grabbed 17 rebounds for Washington.

With the Wizards up by one, Bradley Beal made his first free throw with 10 seconds left, making it 97-95. He missed the second, but the rebound was batted out to Wall, who was fouled and made both shots with 7.3 seconds left.

Greg Monroe had 21 points and 10 rebounds, and Spencer Dinwiddie added 20 off the bench for Detroit, which has lost three straight.

The Wizards led by 16 at intermission, and Paul Pierce’s 3-pointer capped a 7-0 run that put them up 69-48 with 8:58 left in the third quarter.

Detroit chipped away, however and trailed 80-70 to start the fourth. A 9-0 run got the Pistons within one, and when Dinwiddie rebounded his own miss and dunked, the Pistons led 85-84 with 6:46 left.

The Wizards regained the lead for good, 90-89, on two free throws by Gortat.

Paul Pierce (14 points) was back for Washington after missing two games with a bruised right knee, and Beal (right leg stress reaction) returned after missing eight games.

Both teams were coming off losses Friday night, but the Pistons played two overtime periods against the Knicks before traveling to Washington.

The Wizards hit their first five shots, including a pair of 3-pointers by Pierce, and quickly led 12-4.

They shot 66.7 percent (16 for 24) in the first quarter and led by as many as 14.

Anthony Tolliver’s 3-pointer pulled Detroit to within 45-38 midway through the second, but Drew Gooden’s long-range jumper shortly thereafter started a quick 7-0 run and the Wizards led 60-44 at halftime.