The Italian gritted his teeth through the pain to post the third fastest time for Sunday's race behind Maverick Vinales and Jorge Lorenzo
The 38-year-old rider underwent surgery on September 1, a day after a crash in training
The Italian underwent surgery in Ancona, in eastern Italy, on September 1, a day after suffering a crash in training
Hamilton had laboured in qualifying, starting from fifth, but he drove brilliantly in the wet and under lights
Championship leader Lewis Hamilton qualified his Mercedes in fifth place for Sunday's night race.
The 46-year-old and his French co-driver Matthiew Baumel, in a Ford Fiesta R5, were always in control of the 720km event.
The sport's first night race, marking its 10th anniversary, has established itself as one of the most popular and glamorous of F1's events
Former champions agree three-year deal with Renault
Marquez, on a Honda, finished ahead of Italy's Danilo Petrucci
The 22-year-old crossed the line in a fastest final lap of 1min 32.439sec
He has a nine-point advantage to defend over reigning world champion Marc Marquez
He won his seventh FIA World Cup Cross-Country Rallies victory of the season
The win sent the Briton clear at the top of the F1 World Championship
The 32-year-old steered his Mercedes through treacherous conditions with patience
Fans huddled under umbrellas or sought shelter under the grandstands