A machine (1) for preparing a beverage has: a body (1′) with a fluid line (1″,1′″) extending from a liquid inlet (1″) to a beverage outlet (1′″); a liquid tank (15) that has an outlet (16) connected to the liquid inlet (1″); and a carrier (11,12) assembled to the body (1′) for carrying the liquid tank (15). The carrier (11,12) is movable with the liquid tank (15) as a unit (10) inwards into the body (1′) into an operative position for supplying liquid to the liquid inlet (1″) and outwards from the body (1′) into a service position.