Thermal stresses occur in materials when different parts of an object experience non-uniform temperatures, causing them to expand by different amounts. This differential expansion leads to internal forces within the material as some parts are prevented from expanding freely. Thermal stresses can cause mechanical failure if the internal forces exceed the material strength, so engineers must carefully analyze and account for thermal effects in component design.