Through network pharmacology, it is concluded that TP53, TNF, and TYR are the main targets of DMY and MYT in melanoma disease and regulate signaling pathways such as melanogenesis, NF-κB, and apoptosis. The gene discussed is TP53; the disease is melanoma.