Audi driver Jamie Green took a controlled victory in the dry-to-wet second DTM race of the 2017 season at the Hockenheimring.
British racer Green lined up third on the grid but moved into second place at the start, behind polesitter BMW driver Timo Glock.
A first corner clash between Robert Wickens, Loïc Duval and Nico Müller brought out the safety car and the drivers then lined up in two-by-two formation for the new restart procedure.
Glock struggled when the racing resumed, falling to fourth on the restart, with Green storming into the lead ahead of race one winner Lucas Auer.
Green began to open up a comfortable lead over Auer’s Mercedes, with many drivers pitting around the mid-way point for new dry-weather tyres.
But the rain then arrived, with Green and Auer staying out the latest and going straight onto wet tyres for their only pitstops of the race.
It gave Green a considerable advantage at the front of the field and allowed him to take the chequered flag in first place, five seconds clear of Mercedes driver Gary Paffett.
This was despite being slapped with a five-second pitstop penalty for being judged to have jumped the restart. Paffett moved into second place in the second half of the race after also staying out until the rain arrived.
Marco Wittmann made it three manufacturers on the podium with third for BMW after losing out to Paffett in the closing stages.
Auer made a mistake after his late pitstop and went off at the hairpin, falling to fourth, with Müller just holding off Paul di Resta to take fifth place.
Mike Rockenfeller claimed seventh for Mercedes, ahead of polesitter Glock, who lost positions in the pitstop phase and wet final part of the race.
Bruno Spengler was ninth and DTM returnee Maro Engel completed the top 10, with only 13 drivers making the finish.