SAPs function through a process of osmosis and swelling. When they come into contact with fluids, they absorb and trap the liquid within their structure, transforming into a gel-like substance. This property makes them highly effective in managing moisture and preventing leakage.