Two bodies are said to be in thermal equilibrium if they are at the same temperature. Consider two bodies A and B that are not in contact with each other but in contact with a heat reservoir. Since both the bodies will attain the temperature of the reservoir, they will be at the same temperature and, hence, in thermal equilibrium. Therefore, it is possible to have two bodies in thermal equilibrium even though they are not in contact.