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. This evidence concerns the gene TNF and melanoma.