Cocoamidopropyl betaine’s main function is as a surfactant or cleansing ingredient. This compound behaves like most cleansing agents by mixing with oil, water, and dirt to be rinsed off. While rubbing the skin with water, produces foam that moisturizes our skin. Unlike other synthetic surfactants, it is extracted from coconut.