Thiazide diuretics are a class of medications commonly used to treat hypertension and edema. They work by inhibiting the sodium-chloride symporter in the distal convoluted tubule of the nephron, which leads to increased excretion of sodium and water.