An oil seal, also known as a lip seal or rotary seal, is a device used to seal the junction between stationary and moving parts in machinery. Its primary function is to prevent the leakage of lubricants, such as oil or grease, while simultaneously barring dirt and contaminants from entering the system. This is crucial for maintaining the efficiency and longevity of mechanical components.