A pump forces the oil from the pan through a filter to remove dirt and other debris ... depending on the engine. The oil dipstick extends into the oil pan and measures the oil level in the reservoir.