Thiazide diuretics are a class of medications primarily used to treat high blood pressure (hypertension) and edema (fluid retention). They work by increasing urine production, which helps the body get rid of excess fluid and salt. This leads to a reduction in blood volume and subsequently lowers blood pressure.