Methyldopa belongs to the general class of medicines called antihypertensives. It is used to treat high blood pressure (hypertension). High blood pressure adds to the work load of the heart and arteries.