An oil pan is a metal container attached to the bottom of an engine. It serves as a reservoir for engine oil, which lubricates the engine's moving parts. The oil pan also typically includes a drain plug that you can unfasten to drain your oil when changing it regularly.