The Mexican veteran benefitted from late-race issues involving title contenders Verstappen and Hamilton to claim his first Grand Prix victory of the season.
Ferrari paced the field all weekend in practice, but then qualifying came and Charles Leclerc, who led the Ferrari charge, crashed in the second round of qualifying. Instead, Mercedes locked out the front row and it was Valtteri Bottas' day on the streets of Baku.