MC1R palmitoylation, primarily mediated by the protein-acyl transferase ZDHHC13, is essential for activating MC1R signalling, which triggers increased pigmentation, ultraviolet-B-induced G1-like cell cycle arrest and control of senescence and melanomagenesis in vitro and in vivo.