A water pump is responsible for circulating coolant (antifreeze) through the engine to regulate its temperature, preventing overheating.