If detergent is highly branched, bacteria cannot degrade it easily. Slow degradation of detergents lead to their accumulation and causes water pollution. Straight chain detergents are biodegradable.
Hence, pollution is prevented by using more and more straight chain hydrocarbon containing detergents.