What causes the car engine to overheat?

The amount of load it is hauling, whether inside or like pulling a trailer. Also using the air conditioning while going up very long grades on the roadway will cause overheating as the engine has to work harder going uphill and adding the drag of the air conditioning pump only makes that more difficult.