There is described an apparatus for disinfecting a fluid, such as water. Theapparatus includes ahousing having a fluid inlet for inflow of a fluid to be disinfected, and afluid outlet for outflow of thefluid to be disinfected. The apparatus further includes one or more light-emitting diodes (LEDs)operable to emit ultraviolet (UV) light for disinfecting the fluid to bedisinfected. A fluid flow pathextends from the fluid inlet to the fluid outlet. The fluid flow path isconfigured such that, when thefluid to be disinfected flows along the fluid flow path, the fluid to bedisinfected flows sufficiently closeto the one or more LEDs so as to absorb heat generated by the one or moreLEDs.