Lopez scored 38 points, hitting 15-of-22 from the field as part of the Nets' 50 percent shooting effort.
Deron Williams added 31 points, 26 of them coming in the second half. Brooklyn has won the first two games of an eight-game road trip.
Brooklyn overcame a 10-point deficit after one quarter to gain revenge for a home loss to the Mavericks in their only other meeting this season.
Gal Gadot cast as Wonder Woman for 'Batman vs. Superman'
Jordana Brewster on Paul Walker: 'He was an enormous presence in my life'