Machine for treating, in particular sterilizing, objects, comprising at least a treatment chamber (21) and at least one object-carrier container (22, 22a, 22b) houseable in said treatment chamber (21) through at least one aperture (25) of the treatment chamber (21), said machine comprising: at least a first mobile unit (43) positioned outside the treatment chamber (21); at least a second mobile unit (32) positionable inside the treatment chamber (21), and associable with the first mobile unit (43) outside the treatment chamber (21) by means of joint means (35, 51); the second mobile unit (32) is provided with at least a sliding surface (38) near to the object-carrier container (22, 22a, 22b) and at least an attachment element (39) selectively protruding from said sliding surface (38) and provided with elastic return means (40) suitable to keep it in a raised or lowered position with respect to the sliding surface (38) of the second mobile unit (32), the attachment element (39) is also provided with at least one concavity (59) facing toward the aperture (25) of the treatment chamber (21), so as to engage, in the raised position, with the object-carrier container (22, 22a, 22b), so as to extract it from the treatment chamber (21) by means of the first mobile unit (43).