Acute effects of exogenous melatonin have been widely reported to promote sleep or induce drowsiness in human. However, testing of the hypnotic effects of melatonin in nocturnal rodents has yielded contradictory results. The latter may be associated with differences in concentration, lighting conditions, time of administration of melatonin, and possibly the type of analysis. In this study, electroencephalogram (EEG) and electromyogram were recorded in pigmented male Brown Norway rats under both light‐dark (LD) and constant dark (DD) conditions. Melatonin was administered intraperitoneally at a moderate dose of 3 mg/kg, at either 1 h after lights on under LD condition or 1 h after the activity offset under DD condition. The dosage is known to be able to entrain nocturnal rodents in DD conditions, but does not change sleep in rodents in LD. Only the rats under DD conditions showed a significant reduction in nonrapid eye movement (NREM) sleep latency, while the NREM sleep power spectrum remained unaffected. Under LD condition, melatonin did not alter NREM and rapid eye movement (REM) sleep latency, and had only minor effects on the NREM sleep EEG. Regardless of lighting conditions, melatonin administration resulted in less, but longer episodes for all vigilance states suggesting increased vigilance state consolidation. In the discussion, we compare our results with a summary of previously published data concerning the hypnotic effects of melatonin in polysomnographic/EEG‐confirmed sleep in humans and nocturnal rodents. In conclusion, the hypnotic effect of exogenous melatonin in nocturnal rodents not only depends on the time of day, and concentration, but is also influenced by the lighting conditions. Regardless of inducing sleep or not, melatonin may consolidate sleep and through that enhance sleep quality.