The thermal effects of microwaves arise from their ability to cause dielectric heating, where polar molecules like water absorb microwave radiation and convert it into heat. This principle is harnessed in microwave ovens, where food is heated quickly and efficiently by the agitation of water molecules within it.