A surface-active agent used for removing dirt and grease from a variety of surfaces and materials. Early detergents contained alkyl sulphonates, which proved resistant to bacterial decomposition, causing foaming in rivers and difficulties in sewage treatment plants. These hard detergents were replaced during the 1960s with soft biodegradable detergents.