The Golden State Warriors are perfect no more. Their 24-game winning streak to start the 2015-16 N.B.A. season came to end on Saturday night in Milwaukee, where they lost to the Bucks, 108-95.

Although the Warriors had not lost a regular-season game since April 7, the result was not hugely surprising. Golden State was concluding a challenging seven-game trip and coming off a grueling double-overtime game at Boston on Friday night in which they held on for a 124-119 victory.

The normally sharpshooting Warriors struggled to find their range on Saturday, shooting barely 40 percent from the floor, including 6 of 26 from behind the arc. Stephen Curry had 28 points on 10-of-21 shooting from the field, and he went 2 of 8 from 3-point territory. Klay Thompson, returning after missing a game with a sprained ankle, was 4 of 14 for 12 points.

Saturday’s loss stopped the Warriors short of the record of 33 consecutive victories, set by the Los Angeles Lakers in the 1971-72 season. The Bucks also stopped the Lakers’ winning streak in 1972.