A machine (1) for preparing a beverage comprises: a first part (20) and a second part (30) movable relative to the first part; a motor (51,51′) having a drive member (510, 511) such as a rotating drive axis; one or more mechanical transmission members (52; 521-523; 524-526) for transmitting a movement of the drive member to the movable part (30) for moving the movable part; and a transmission frame (200) for supporting the motor and the movable transmission member(s). The transmission frame is an integral component (200) on which the motor and the transmission members are directly mounted.