Machine for treating objects, in particular washing, thermal disinfection and/or sterilization of objects, comprising: at least a treatment chamber comprising an entrance aperture and lateral walls (30', 31'), the treatment chamber being configured to house a plurality of object-holder containers (12', 13') located in sequence; a first object-holder container comprising opposite sides (36, 37) and at least a releasable connection device (40, 40') comprising: at least one rotatable arm provided on at least one of said opposite sides (36, 37) of said first object-holder container and configured to pass, by means of activation means (32, 33, 49, 49') positioned in the treatment chamber, from a first inactive release position to a second active attachment position; and wheel or other rolling element (45, 46), said machine further comprising a second object-holder container comprising opposite sides (36, 37) and at least one pin protruding from one side (36, 37) of said second object-holder container and suitable to be engaged by said rotatable arm in the second active attachment position, said activation means positioned in the treatment chamber comprising at least a cam (49, 49') disposed on the internal surface of the lateral walls (30', 31') of the treatment chamber, whereby said releasable connection device (40, 40'), said pin and said activation means (49, 49') are configured to cooperate, so that, inserting the second object-holder container in the treatment chamber after at least a first object-holder container already inserted in said chamber and moving said second object-holder containers toward the inside of the chamber, said releasable connection device (40, 40') is automatically activated by said activation means (49, 49'), by thrusting said second object-holder container against said first object-holder container, causing the rotation of said rotatable arm from said first inactive release position to said second active attachment position thanks to the sliding of said wheel or other rolling element along said cam (49, 49'), in order to reciprocally connect said object-holder containers (12' 13'), so as to allow a simultaneous extraction thereof, acting on the first or last object-holder container (12', 13') inserted. at least a treatment chamber comprising an entrance aperture and lateral walls (30', 31'), the treatment chamber being configured to house a plurality of object-holder containers (12', 13') located in sequence; a first object-holder container comprising opposite sides (36, 37) and at least a releasable connection device (40, 40') comprising: at least one rotatable arm provided on at least one of said opposite sides (36, 37) of said first object-holder container and configured to pass, by means of activation means (32, 33, 49, 49') positioned in the treatment chamber, from a first inactive release position to a second active attachment position; and wheel or other rolling element (45, 46), said machine further comprising a second object-holder container comprising opposite sides (36, 37) and at least one pin protruding from one side (36, 37) of said second object-holder container and suitable to be engaged by said rotatable arm in the second active attachment position, said activation means positioned in the treatment chamber comprising at least a cam (49, 49') disposed on the internal surface of the lateral walls (30', 31') of the treatment chamber, whereby said releasable connection device (40, 40'), said pin and said activation means (49, 49') are configured to cooperate, so that, inserting the second object-holder container in the treatment chamber after at least a first object-holder container already inserted in said chamber and moving said second object-holder containers toward the inside of the chamber, said releasable connection device (40, 40') is automatically activated by said activation means (49, 49'), by thrusting said second object-holder container against said first object-holder container, causing the rotation of said rotatable arm from said first inactive release position to said second active attachment position thanks to the sliding of said wheel or other rolling element along said cam (49, 49'), in order to reciprocally connect said object-holder containers (12' 13'), so as to allow a simultaneous extraction thereof, acting on the first or last object-holder container (12', 13') inserted.