Herpes simplex virus type 1 utilizes cell surface heparan sulfate as receptors to infect target cells. The unique heparan sulfate saccharide sequence offers the binding site for viral envelope proteins and plays critical roles in assisting viral infections. A specific 3-O-sulfated heparan sulfate is known to facilitate the entry of herpes simplex virus 1 into cells. The 3-O-sulfated heparan sulfate is generated by the heparan sulfate d-glucosaminyl-3-O-sulfotransferase isoform 3 (3-OST-3), and it provides binding sites for viral glycoprotein D (gD). Here, we report the purification and structural characterization of an oligosaccharide that binds to gD. The isolated gD-binding site is an octasaccharide, and has a binding affinity to gD around 18 microm, as determined by affinity coelectrophoresis. The octasaccharide was prepared and purified from a heparan sulfate oligosaccharide library that was modified by purified 3-OST-3 enzyme. The molecular mass of the isolated octasaccharide was determined using both nanoelectrospray ionization mass spectrometry and matrix-assisted laser desorption/ionization mass spectrometry. The results from the sequence analysis suggest that the structure of the octasaccharide is a heptasulfated octasaccharide. The proposed structure of the octasaccharide is DeltaUA-GlcNS-IdoUA2S-GlcNAc-UA2S-GlcNS-IdoUA2S-GlcNH(2)3S6S. Given that the binding of 3-O-sulfated heparan sulfate to gD can mediate viral entry, our results provide structural information about heparan sulfate-assisted viral entry.