Hydrochlorothiazide belongs to a class of medicine known as diuretics water pills. It works by causing you to make more urine. This helps your body get rid of extra salt and water. This medicine also reduces extra fluid in the body (edema) caused by conditions such as heart failure, liver disease, or kidney disease.