The main ingredient in shampoo is a surfactant, which acts as a cleaning agent to remove dirt, oil, and debris from the hair and scalp. Common surfactants include sodium lauryl sulfate (SLS) and sodium laureth sulfate (SLES). Water is also a major component, acting as a diluent and helping to blend other ingredients.