Melanoma is one of the highly malignant tumors whose incidence and fatality rates have been increased year by year. However, in addition to early surgical resection, there still lacks specific targeted drugs and treatment strategies. In this study, it was discovered that hinokiflavone (HF) encapsulated in zeolitic imidazolate framework-8 (ZIF-8) exhibited a superior anti-melanoma effect in vitro and in vivo. HF was encapsulated in ZIF-8 through a one-step synthesis method, and polyethylene glycol (PEG-2000) was used to optimize the size and dispersion of the drug-loaded complex (PEG/ZIF-8@HF). The results show that the prepared PEG/ZIF-8@HF has a high encapsulation efficiency (92.12%) and can achieve selective drug release in an acidic microenvironment. The results of in vitro anti-melanoma experiments indicate that PEG/ZIF-8@HF shows up-regulation of reactive oxygen species (ROS) levels and can restrain the migration and invasion of B16F10 cells. Moreover, in vivo animal experiments further confirm that PEG/ZIF-8@HF shows anti-tumor effect by up-regulating the pro-apoptotic proteins caspase-3 and caspase-8, and down-regulating the migration-promoting invasion protein MMP-9. This study developed a safe and effective oral administration of HF based on the high-efficiency delivery ZIF-8 system, which provides an effective treatment strategy for melanoma.