Pierre Gasly won the Italian Grand Prix, becoming the first French driver since 1996 to win an F1 race.