An efficient nonenzymatic glucose sensor based on Ni(OH)2/MoSx nanocomposite modified glassy carbon electrode has been fabricated via a two-step electrodeposition approach. The resulting nonenzymatic sensor exhibits excellent properties toward glucose detection, such as low detection limit, fast response and noticeable selectivity.