A gasket is nothing but a mechanical seal that helps to fill the space between two surfaces. It helps in preventing leakage or seepage, both into and out of the joint between the two surfaces. For instance, where both solid metal surfaces meet like a joint in a pipe. The seal will not be perfect or ensure you that no liquid or gas will go out or enter the joint. A gasket helps to fill this gap.