Though melatonin is known to improve ultraviolet B (UVB)-induced oxidative damage and inflammatory conditions via blockade of nuclear factor (NF)-κB, interleukin (IL)-6, there is no report on anti-wrinkle effect of melatonin to date. Hence in the present study, anti-wrinkle mechanism of melatonin was elucidated in UVB treated HaCaT keratinocytes and hairless mice. Herein melatonin protected against a radical initiator tert-Butyl hydroperoxide (t-BOOH) induced reactive oxygen species (ROS) production, matrix metalloprotease 1 (MMP-1) and cytotoxicity in HaCaT keratinocytes. Also, melatonin suppressed the expression of sonic hedgehog (SHH) and GLI for hedgehog signaling, p-NF-kB, cyclooxygenase (COX-2), p-ERK for inflammatory responses in UVB treated HaCaT keratinocytes. Furthermore, melatonin protected skin from wrinkle formation, transdermal water loss in hairless mice irradiated by UVB for 8 weeks. Notably, melatonin prevented against epidermal thickness and dermal collagen degradation in UVB irradiated hairless mice by Hematoxylin & Eosin and Masson’s trichrome staining. Taken together, these findings suggest that melatonin reduces wrinkle formation via inhibition of ROS/SHH and inflammatory proteins such as NF-kB/COX-2/ERK/MMP1.