Molecular dynamics was utilized to investigate ionic structure, dynamics and adsorption behaviors of the sulfate and sodium ions highly solvated in the nanometer channel of calcium silicate hydrate (C–S–H) with two different Ca/Si ratios. Due to H-bond connection from silicate oxygen sites and attraction of surface calcium ions, a stable adsorption layer of water molecules was formed in the vicinity of the hydrophilic silicate channel: clear layered arrangements, strong orientation preferences and extremely low diffusion coefficients. Furthermore, the adsorption mechanisms differ for the sulfate and sodium ions confined in the gel pore of C–S–H: while sodium ions are connected onto the non-bridging oxygen sites by Na-Onb bonding, the sulfate ions can be attracted by the calcium ions, leading to the aggregation of Ca-SO4 ionic pairs. In the surface region, since the hydration shell of the solvated ions are partly substituted by the adsorbed water molecules, surface calcium ions and silicate oxygen sites, the diffusion of these ions is dramatically immobilized. Both the adsorbed Na+ and SO42− ions display extended exchange time for their solvation shells and longer residence time for their ionic clusters, as compared with those in aqueous solution. Besides, the increase in the surface Ca/Si ratio disturbs the local ordered arrangements and reduces the stability of the hydration layer. At high Ca/Si ratio, the highly solvated calcium ions contribute to the transformation from the outer adsorbed sulfate ions to the inner adsorbed species, enhancing the anions immobilization near the silicate surface.