We demonstrate that collagen stiffness induces melanoma differentiation through a YAP/PAX3/MITF axis and show that in melanoma patients increased collagen abundance correlates with nuclear YAP localization. This evidence concerns the gene YAP1 and melanoma.