Thermostatic mixing valves are used in plumbing and heating systems to control and maintain a consistent water temperature. They combine hot and cold water to achieve the desired temperature, which can be set and adjusted using a thermostatic control.