The primary mechanism of thermotherapy is the increase in blood flow to the affected area. Heat causes the blood vessels to dilate, which enhances circulation and delivers more oxygen and nutrients to the tissues. This process helps in reducing muscle spasms, alleviating pain, and speeding up the healing process.