In general, a cloth diaper functions in a similar way as a disposable diaper does. Liquids are absorbed by the cloth fibers and solids remain on top, while the waterproof layer prevents leaks.