Nanocube-like LiFePO4/C particles are prepared through a hydrothermal method in the presence of ionic liquid and glucose. Ionic liquid is used as co-solvent and surface growth directing template agent to control the size and morphology of the particles. Glucose serves as the carbon source to conduct carbon coating. A proper concentration of ionic liquid can decrease the particles size and the as-prepared sample in this concentration demonstrates excellent electrochemical performance, cyclic ability and rate capability.