Synthetic anionic detergents are used in toothpaste.The anionic part of the molecule is involes in the cleansing action.usually, they contain either sulfate(so2−4) or sulfonate (so−3) head group (which are anions).
They are used in toothpaste to clean the teeth and to provide a foam that helps in carrying away the debris.
Example: CH3(CH2)11OSO−3Na+
Sodium lauryl sulfate