Adsorption of surfactants of a different nature on solid surfaces has found remarkable enthusiasm in many industrial processes such as enhanced oil recovery, detergency, solubilization, and flocculation/dispersion. Surfactants can interact with solid slabs and alter their surface charge and hydrophobicity, which are essential in interfacial phenomena. Interestingly, the surface charges of amorphous materials are thoroughly different from crystalline materials due to the disordered distribution of surface atoms. Therefore, we performed molecular dynamics simulations to examine the interactions of surfactant solutions with SiO2 surface in detail. To this aim, aqueous solutions of various surfactants were confined between two amorphous SiO2 walls, which were 10 nm apart. The results indicate that the structure of the amorphous solid surfaces is changed substantially due to their interactions with surfactant solutions. The simulation results indicate the presence of the nonionic surfactant aggregates in the bulk solvent, while ionic surfactants without branching, such as SDS, form aggregates that adsorb on the SiO2 surface. The interactions of the confined surfactants with glassy SiO2 slabs change the structure of the surface layer and consequently alter the surface charge density during the simulation, which leads to the separation of cationic and anionic parts of the confined surfactants in the vicinity of amorphous SiO2 slabs.