An oil seal is a mechanical seal used to prevent the leakage of oil and other fluids from rotating shafts or axles in machinery. It is typically made of rubber or other elastomeric materials and is designed to fit tightly around the shaft to create a seal that prevents the fluid from leaking out.