Detergents are more effective at removing stains in warm water than in cold water. This is because the higher temperature of the water helps to dissolve the detergent and allows it to penetrate the fabric more easily. In addition, the heat from the water can help to loosen the bonds between the stain and the fabric, making it easier for the detergent to remove.