When their temperatures are equal
Step-by-step explanation:
When two objects are in thermal equilibrium they are said to have the same temperature. During the process of reaching thermal equilibrium, heat, which is a form of energy, is transferred between the objects.