Condensation forms when warm air containing moisture comes into contact with a cold surface, such as your car window.