NMFs work by attracting and binding water molecules from the environment, thereby keeping the stratum corneum hydrated. This hydration is essential for maintaining the skin's barrier function, which protects against environmental aggressors, pathogens, and irritants. The presence of NMFs ensures that the skin remains supple and resilient.