In addition to the actual 'detergent' molecule, detergents usually incorporate a variety of other ingredients that act as water softeners, free-flowing agents etc.
The active ingredient in soaps and detergents, an ionic species consisting of a long, linear, non-polar 'tail' with a cationic or anionic 'head' and a counter ion
The surfactant molecules migrate to align themselves with the solid:water interface, lowering the surface tension so that it penetrates the fabric better
The surfactant molecules surround an oily dirt particle, forming a micelle with a drop of oil in the centre and the ionic heads of the surfactant molecules pointing outwards, keeping the micelle in the polar solution
Soap is designed as a product to be used once then flushed down the drain, so the environmental implications of its manufacture are not nearly so great as many other chemical processes
The sulphonic acid and nonionic detergents used in New Zealand to produce both liquid and powder detergents are fully biodegradable and comply with the relevant Australian standard