Surface-enhanced Raman scattering (SERS) integrates high levels of sensitivity with spectroscopic precision and has tremendous potential for chemical and biomolecular sensing. The key to the wider application of Raman spectroscopy using roughened metallic surfaces is the development of highly enhancing substrates for analytical purposes. Here, we demonstrate a simple strategy for self-assembling silver nanochains on glass substrates for sensitive SERS substrates. The chain length of short Ag nanochains can be controlled by adjusting the concentration of cetyltrimethylammonium bromide (CTAB) and 11-mercaptoundecanoic acid (MUA). CTAB with appropriate concentration serves as the "glue" that can link the {100} facets of two neighboring Ag nanoparticles. MUA is found to be effective in "freezing up" the aggregation of Ag short chains and preventing them from further aggregating into a long chainlike network structure. The surface plasmon bands can be tuned over an extended wavelength range by controlling the length of the nanochains. The Ag monolayer, mainly composed of four-particle nanochains, exhibited the maximum SERS enhancement factor of around 2.6 x 108, indicating that a stronger SERS enhancement can be obtained in these interstitial sites of chainlike aggregated Ag nanoparticles.