The purpose of a diaper is to absorb moisture and contain mess so that the wearer can remain dry and comfortable after wetting or soiling themselves. When diapers become full and can no longer hold any more waste, they require changing; this process is often performed by a secondary person such as a parent or caregiver. Failure to change a diaper on a regular enough basis can result in diaper rash.
The problem of clothing infants not yet potty trained is as old as human history. In some countries with warmer climates, babies were kept naked and mothers tried to anticipate their bowel movements so as to avoid mess near their living areas. This method is known as elimination communication and is still used today in some cultures.