Machine for treating objects, in particular washing, thermal disinfection and/or sterilization of objects, comprising at least a treatment chamber configured to house a plurality of object-holder containers (12, 13) located in sequence and comprising opposite lateral walls (30, 31), characterized in that it comprises: at least a releasable connection device (22, 22') of said object-holder containers (12, 13), associated with at least one of the object-holder containers (12, 13); activations means (32, 33) positioned on said lateral walls (30, 31) inside the treatment chamber and configured to cooperate with said releasable connection device (22, 22');; said device (22, 22') comprising at least a sliding block (23, 23') associated with at least a first head and/or tail bar (15, 16) of an object-holder container (13, 12) and provided with an attachment element (24, 24') able to engage said first bar (15, 16) and at least a second bar (16, 15) of another object-holder container (12, 13), following the translation of said sliding block (23, 23') with respect to said first bar (15, 16), said sliding block (23, 23') being made to translate in one direction or the other with respect to said bar (15, 16) by means of said activation means (32, 33) so that, when inserting an object-holder container in the treatment chamber after at least a first object-holder container already inserted in said chamber and moving said object-holder containers (12, 13) toward the inside of the chamber, said releasable connection device (22, 22') is automatically activated by said activation means (32, 33) in order to reciprocally connect said object-holder containers (12, 13), so as to allow a simultaneous extraction, acting on the last object-holder container inserted; and further comprising de-activation means (32', 33') of said releasable connection device (22, 22'), so as to automatically separate said object-holder containers (12, 13) during an extraction step of the object-holder containers (12, 13) from the chamber; wherein said sliding block (23, 23') comprises at one end at least a first rolling element (27, 27') able to engage with said activation means (32, 33) and, at the other end, at least a second rolling element (28, 28') able to engage with said de-activation means (32', 33'); wherein said first and second rolling elements (27, 27', 28, 28') are alternatively protruding from opposite sides (20, 21) of the object-holder container (12, 13); and wherein said de-activation means comprise at least a cam profile (32', 33') which can engage with said second rolling element (28, 28') of said releasable connection device (22, 22'). at least a releasable connection device (22, 22') of said object-holder containers (12, 13), associated with at least one of the object-holder containers (12, 13); activations means (32, 33) positioned on said lateral walls (30, 31) inside the treatment chamber and configured to cooperate with said releasable connection device (22, 22');; said device (22, 22') comprising at least a sliding block (23, 23') associated with at least a first head and/or tail bar (15, 16) of an object-holder container (13, 12) and provided with an attachment element (24, 24') able to engage said first bar (15, 16) and at least a second bar (16, 15) of another object-holder container (12, 13), following the translation of said sliding block (23, 23') with respect to said first bar (15, 16), said sliding block (23, 23') being made to translate in one direction or the other with respect to said bar (15, 16) by means of said activation means (32, 33) so that, when inserting an object-holder container in the treatment chamber after at least a first object-holder container already inserted in said chamber and moving said object-holder containers (12, 13) toward the inside of the chamber, said releasable connection device (22, 22') is automatically activated by said activation means (32, 33) in order to reciprocally connect said object-holder containers (12, 13), so as to allow a simultaneous extraction, acting on the last object-holder container inserted; and further comprising de-activation means (32', 33') of said releasable connection device (22, 22'), so as to automatically separate said object-holder containers (12, 13) during an extraction step of the object-holder containers (12, 13) from the chamber; wherein said sliding block (23, 23') comprises at one end at least a first rolling element (27, 27') able to engage with said activation means (32, 33) and, at the other end, at least a second rolling element (28, 28') able to engage with said de-activation means (32', 33'); wherein said first and second rolling elements (27, 27', 28, 28') are alternatively protruding from opposite sides (20, 21) of the object-holder container (12, 13); and wherein said de-activation means comprise at least a cam profile (32', 33') which can engage with said second rolling element (28, 28') of said releasable connection device (22, 22').