The chewing surfaces of the back teeth have many pits and grooves which can trap food debris and cause cavities.
Sealants are a plastic resin that flows into these grooves of the tooth , get hardened to form a more shallow and a smooth surface from which the food debris can be easily washed away.