Melatonin is a hormone synthesized in your pineal gland and several other organs, indeed in most cells, including human lung monocytes and macrophages, as it is actually synthesized in your mitochondria.
While most well-known as a natural sleep regulator, melatonin also has many other important functions. Notably, it plays an important role in cancer prevention and may prevent or improve certain autoimmune diseases, such as Type 1 diabetes.