The BMW M21 is a straight-six diesel engine developed by the Bavarian engine manufacturer BMW. It has swirl chamber injection and is based on the M20 petrol engine and was produced for BMW by the Upper Austrian Steyr engine plant from 1983 to 1991. It was succeeded by the M51.