We report on a highly sensitive and selective nonenzymatic glucose sensor based on a glassy carbon electrode modified with a nanocomposite prepared from nickel (II) hydroxide nanoplates and carbon nanofibers. The facile preparation, high electrocatalytic activity, relatively fast response, favorable reproducibility and long-term performance stability demonstrate the potential applications of the sensor.