Lube oil is used in diesel engines:

To cool the engine

To reduce friction

2 and 3 both

To ignite