Hamilton has won the Chinese Grand Prix six times
Lewis Hamilton said he was "gobsmacked" to take his first pole position for Ferrari for the sprint race at the Chinese Grand Prix.
Hamilton out-qualified Red Bulls Max Verstappen, with his Ferrari team-mate Charles Leclerc fourth and Lando Norris McLaren sixth.
The seven-time champion, who qualified eighth and finished ninth on his Ferrari debut in Australia last weekend, said: "Im a bit taken aback by it.
"I didnt know when we would get to this position and, after last weekend, it was a difficult start to the week. I came here with aggression and wanting to go into the weekend and get the car into a great place.
"I started out straight away with a better feeling in the car and I cant believe we are at the front. I am just a bit gobsmacked."
Hamilton out-qualified Leclerc by 0.208 seconds and Norris by 0.544secs.
The result gives Hamilton prime starting position for the shorter sprint race on Saturday, at 03:00 GMT, after which the teams can modify their cars set-ups before grand prix qualifying at 07:00.
Hamilton said: "Even though its not the main pole it gives me real inspiration to go into tomorrow and try to find more performance and see if we can compete again. Theres definitely a little more performance to find, for sure."
Leclerc said: "I struggled on my side of the garage. From the beginning I felt I was a step back from Lewis and he was just faster.
"Struggled a lot in Turns One, Two, Three, which is the same as last year more or less. Apart from that, everything was quite tight, its a shame we start P4 but Lewis is on pole and hopefully we can have a strong race."
Behind Verstappen in second, McLarens Oscar Piastri took third, ahead of Leclerc, the Mercedes of George Russell and Norris.
Ferrari team principal Frederic Vasseur said he believed the result was a reflection of the closeness of competition between the top four teams and the difficulty of getting the cars into the right set-up window and the tyres behaving at their optimum.
Vasseur said: "The day was a bit difficult to read. McLaren was in front this morning and in Q1 we were in front, Q2 they were mega, Q3 we were back.
"I think it is linked to tyre management. If you are not in the right window you are struggling a lot, but it is good for the team.
"We had a tough weekend in Melbourne but the Friday was good. It is a bit like this weekend, very up and down.
"It is exactly the same as the picture of last year - the last four races, three or four teams were able to win by 30 seconds from track to track depending on the tyres."