A W engine is a type of piston engine where three or four cylinder banks use the same crankshaft, resembling the letter W when viewed from the front.