The disclosed six-membered carbocyclic nucleoside analogues comprise: adenosine analogue, guanosine analogue, carnine analogue, mercaptopurine riboside analogue, cytidine analogue, 5-fluorocytidine analogue, uridine analogue, 5-fluorouridine analogue, and thymidine analogue as well as their acceptable salts formed by equimolar acid in pharmacy. Wherein, the opposite five-step synthesis method using the pinitol, acetone, methane sulfonyl chloride, p-toluenesulfonyl chloride, benzene sulfochloride, and nucleoside base as materials; the pyridine, water, glacial acetic acid, absolute methanol, DMSO, N, N-DMF as the solvent; the p-toluenesulfonic acid, 2, 2-dimethoxylpropane, anhydrous NaSO4, NaHCO3, triethylamine, and anhydrous K2CO3 as the catalyst. This invention restrains specially the replication of HIV and herpesvirus.