Is freezing endothermic or exothermic?

Is freezing endothermic or exothermic?