A coffee machine incorporating a grinder comprising a hopper that is extractably engageable in a housing seat, said hopper having an unloading opening and a first movable occlusion element for occluding said unloading opening, said housing seat having an access opening for access to burrs of the grinder and a second movable occlusion element for occluding said access opening, the coffee machine further comprising: - a fastening means for releasably fastening the hopper in the housing seat, said fastening means being configured and arranged so as to automatically take on a fastening configuration by virtue of the engagement of the hopper in the housing seat; - a first locking means, comprising a releasable locking element that is movable between a locking position and an unlocking position for locking/unlocking the fastening means in/from the fastening configuration; - a first manually-operated control means mounted on said hopper, said means being configured and arranged for the combined activation of said occlusion elements (6, 8) and said locking element, between a first configuration in which said occlusion elements (6, 8) are in the position for closing the respective openings (5, 7) and said locking element is in the unlocking position, and a second configuration in which said occlusion elements (6, 8) are in the position for opening the respective openings (5, 7) and said locking element is in the locking position; - a second locking means for releasably locking the occlusion elements (6, 8) in the closed position, said second locking means being configured and arranged so as to automatically take on a locking configuration by virtue of disengagement of the hopper from the housing seat; - a second manually-operated control means that can be operated for releasing the fastening means selectively when said locking element and said occlusion elements (6, 8) take on said first configuration, said second control means being mounted on said hopper, and being separate and independent from the first control means, characterized in that said first control means comprises a translational manual control lever to which said locking element is rigidly connected, and an oscillating transmission lever connecting said manual control lever to said first occlusion element. - a fastening means for releasably fastening the hopper in the housing seat, said fastening means being configured and arranged so as to automatically take on a fastening configuration by virtue of the engagement of the hopper in the housing seat; - a first locking means, comprising a releasable locking element that is movable between a locking position and an unlocking position for locking/unlocking the fastening means in/from the fastening configuration; - a first manually-operated control means mounted on said hopper, said means being configured and arranged for the combined activation of said occlusion elements (6, 8) and said locking element, between a first configuration in which said occlusion elements (6, 8) are in the position for closing the respective openings (5, 7) and said locking element is in the unlocking position, and a second configuration in which said occlusion elements (6, 8) are in the position for opening the respective openings (5, 7) and said locking element is in the locking position; - a second locking means for releasably locking the occlusion elements (6, 8) in the closed position, said second locking means being configured and arranged so as to automatically take on a locking configuration by virtue of disengagement of the hopper from the housing seat; - a second manually-operated control means that can be operated for releasing the fastening means selectively when said locking element and said occlusion elements (6, 8) take on said first configuration, said second control means being mounted on said hopper, and being separate and independent from the first control means,