(CNN) -- Valentino Rossi will start Sunday's German MotoGP at Sachsenring in fifth position, on his return to action after breaking his leg just six weeks ago.
The world champion is on the second row of the grid after Saturday's qualifying session -- completing a remarkable return to the sport following his accident at Mugello last month.
"I am really happy after this second day because I feel confident on the bike," Rossi told the official MotoGP website.
"I have suffered more today because we've had two sessions instead of one and I have some pain and I'm more tired than Friday, but I feel good and my movement is OK."
Meanwhile, Spain's Jorge Lorenzo will start in pole position for the fourth successive race, as he seeks to extend his lead in the current title standings.
Lorenzo has won the last three races, at Silverstone, Assen and Barcelona, all of which he started from the front of the grid, and is seeking his sixth victory of the season.
Joining Lorenzo's Yamaha on the front row are Australia's Casey Stoner on his Ducati and Dani Pedrosa of Honda.
"This pole position was very hard because Casey and Dani were so fast; I had to push at the maximum and ride really well," said Lorenzo -- the first Yamaha rider since Max Biaggi in 2001 to achieve four or more successive pole positions.