The primary function of shampoo is to clean the scalp and hair. When you use shampoo, it cleanses your hair by pulling dirt and oil from the surface of each strand.
The shampoo is also effective at styling hair. The surfactants in shampoo helps to add volume and make the hair bouncy.
They also make it easier to comb through, so shampoo is often used as a conditioner. Finally, shampoo is hydrophilic, which means that it attracts water. This property helps to rinse away any dirt or oil.