A gasket is a mechanical seal which fills the space between 2 or more mating surfaces. Its function is to prevent leakage from or into the joined objects while under compression. Gaskets are made from deformable materials that can tightly fill the space and irregularities.