The aim of this study was to identify the effects of melatonin on acute gouty inflammation and to investigate the underlying mechanisms. We found significantly lower serum melatonin levels in gout patients in the acute phase than in those in the remission phase or in normal individuals. The mRNA expression of melatonin receptor 2 (MT2) was also lower in gout patients than in normal individuals. To verify the in-vivo role of melatonin, a gouty arthritis model was established by intraarticular injection of monosodium urate (MSU, 1 mg) crystals into the paws of C57BL/6 mice. Joint inflammation in the mouse model was evaluated by measuring the thickness of the right paw/left paw, and the inflammation index was determined by examining infiltrating neutrophils with haematoxylin and eosin (H&E) staining. Melatonin was found to reduce both paw thickness and the inflammation index in the mouse model, and melatonin also reduced the mRNA levels of interleukin-1 beta (IL-1β), IL-6 and NLR family pyrin domain containing 3 (NLRP3) inflammasome. To mimic gouty inflammation in vitro, mouse peritoneal macrophages were stimulated with lipopolysaccharides (LPS) plus MSU. Melatonin was revealed to reduce IL-1β secretion by stimulated macrophages. The mRNA expression levels of IL-1β and IL-6 were also inhibited by melatonin. Western blot analysis showed that the expression of NLRP3, caspase-1 and pro-IL-1β was also inhibited by melatonin. In conclusion, our study demonstrated that melatonin alleviated gouty inflammation in vivo and in vitro, and the underlying mechanism may involve inhibiting the assembly of the NLRP3 inflammasome.