The combination of methyldopa and hydrocholorothiazide are used to treat high blood pressure.The present research dealt with the synthesis and utilization of the hexagonal-shaped of ZnO nanoparticles (NPs) to develop a new, sensitive, and exclusive electrochemical sensor for detection of methyldopa. Thus, we did our examination on the methyldopa detection via cyclic voltammetry (CV) method, differential pulse voltammetry (DPV) technique, and chronoamperometry (CH) at molybdenum (VI) complex-ionic liquid–ZnO NP modified carbon paste electrode (MCILZNMCPE) in 0.1 M PBS (pH of 7.0) solution. The use of DPV showed linear dependence of methyldopa peak current at pH of 7.0 solution on their concentration ranging between 0.05 and 300.0 µM. Then, limit of detection (LOD) has been determined to be 20.0 nM for methyldopa. Ultimately, the modified electrode has been utilized for detecting methyldopa in the presence of hydrochlorothiazide by DPV.