Williams was hot to begin the game, putting in 14 of his points in the first quarter, and the Nets never looked back.
Brook Lopez helped out with 18 points for Brooklyn, which snapped a 10-game losing streak at Detroit.
Andray Blatche also reached double figures with 15 and Joe Johnson added 13 in the win.
Exploding whale video goes viral on Internet
Jordana Brewster on Paul Walker: 'He was an enormous presence in my life'