The question had loomed whether Hu would stay on as head of the powerful Central Military Commission.
Hu's predecessor Jiang Zemin remained chief of the military commission for two years after Hu took over as president and party boss.
"Chairman Hu, giving full consideration to the development of the party, country and military, voluntarily proposed no longer holding the positions of party general secretary or chairman of the military commission," the official Xinhua news agency cited Xi as saying. "The entire 18th Party Congress respected Chairman Hu's willingness (to step down), and agreed to his request."