Why jets leave white trails in the sky

The atmosphere is thin and cold the higher up a plane goes.

The exhaust from a plane’s engine is much hotter than the atmosphere.

The water vapor from the hot plane engine turns to ice mid-air which we see as white lines in the sky called contrails.