Oil seals, also known as rotary shaft seals, are a type of gasket used to prevent lubricant leakage and contamination in rotating machinery by creating a barrier between the moving and stationary parts.