A device for disinfecting water, the device comprising: - a water container for storing water to be disinfected; - an electrolytic cell comprising an anode chamber and a cathode chamber separated by an ion-permeable membrane; - a salt container adapted for dissolving a salt, when stored in the salt container, in water received from the water container to obtain a salt solution and for feeding said salt solution to said anode chamber; - a caustic base container, operably coupled to said cathode chamber to store a caustic base extracted from said cathode chamber; - a mixing chamber in fluid communication with said water container and said anode chamber, such that water from the water container is, in operation of the device, mixed with and disinfected by a disinfectant compound formed in the anode chamber by electrolysis of the salt solution; - an inlet for receiving water to be disinfected and for adding the received water to said water container, and - an outlet for providing disinfected water extracted from the mixing chamber, wherein said cathode chamber and said caustic base container are integrally formed in a first monolithic structural element, wherein said anode chamber and said mixing chamber are integrally formed in a second monolithic structural element, wherein said first monolithic structural element and said second monolithic structural element are adapted for being removably fastened to each other, such as to clamp the ion-permeable membrane between the first monolithic structural element and the second monolithic structural element, and such as to allow access to the ion-permeable membrane by separating the first monolithic structural element and the second monolithic structural element when fastened to each other. - a water container for storing water to be disinfected; - an electrolytic cell comprising an anode chamber and a cathode chamber separated by an ion-permeable membrane; - a salt container adapted for dissolving a salt, when stored in the salt container, in water received from the water container to obtain a salt solution and for feeding said salt solution to said anode chamber; - a caustic base container, operably coupled to said cathode chamber to store a caustic base extracted from said cathode chamber; - a mixing chamber in fluid communication with said water container and said anode chamber, such that water from the water container is, in operation of the device, mixed with and disinfected by a disinfectant compound formed in the anode chamber by electrolysis of the salt solution; - an inlet for receiving water to be disinfected and for adding the received water to said water container, and - an outlet for providing disinfected water extracted from the mixing chamber, wherein said cathode chamber and said caustic base container are integrally formed in a first monolithic structural element, wherein said anode chamber and said mixing chamber are integrally formed in a second monolithic structural element, wherein said first monolithic structural element and said second monolithic structural element are adapted for being removably fastened to each other, such as to clamp the ion-permeable membrane between the first monolithic structural element and the second monolithic structural element, and such as to allow access to the ion-permeable membrane by separating the first monolithic structural element and the second monolithic structural element when fastened to each other. wherein said cathode chamber and said caustic base container are integrally formed in a first monolithic structural element, wherein said anode chamber and said mixing chamber are integrally formed in a second monolithic structural element, wherein said first monolithic structural element and said second monolithic structural element are adapted for being removably fastened to each other, such as to clamp the ion-permeable membrane between the first monolithic structural element and the second monolithic structural element, and such as to allow access to the ion-permeable membrane by separating the first monolithic structural element and the second monolithic structural element when fastened to each other.