TiO2/C nanocomposites were fabricated by simple hydrolysis of tetrabutyl titanate to yield TiO2 nanoparticles followed by carbonizing the mixture of glucose and TiO2 at 600°C. By merely varying the weight ratio of glucose:TiO2, the electrochemical performance of the composites could be optimized significantly. At a ratio of 0.8, the composite exhibits a high reversible capacity of 283.7mAhg−1 after cycling 100 times at a current density of 100mAg−1, as well as the capacities of 245.1, 213.6, 179.9 and 136.6mAhg−1 at the corresponding densities of 200, 400, 800 and 1600mAg−1. After cycling 1000 times at 500mAg−1, a capacity of 122.8mAhg−1 was retained for the composite with a ratio of 0.8, and even a capacity of 149.1mAhg−1 for the composite with a ratio of 0.7. The enhanced performance is ascribed to the carbon-coated TiO2 nanoparticles uniformly embedding in the carbon matrix with appropriate carbon content.