The main function of the drug docusate sodium is to soften stools. It aids in softening the faeces, making it easier to pass, and is frequently used to treat constipation. The said substance softens and prevents dry, hard stools by increasing the quantity of water that is absorbed into the stool. Docusate sodium works by enhancing the stool's absorption of water and fat, which softens it. It is a laxative with surfactants that reduces the surface tension at the sputum's oil-water interface, allowing water and lipids to permeate and soften the sputum. This medication also treats occasional constipation in the short term.