Termites in walls can be treated using foam termiticides, dust insecticides, or fumigation. Many products can be applied directly to the affected area, killing termites on contact. Fumigation involves tenting the entire structure and using a gas to exterminate the termites. It's essential to consult a professional to determine the right treatment for your situation.