Grapes naturally contain small amounts of melatonin, a hormone that helps regulate your sleep-wake cycle. Some research suggests that eating melatonin-containing foods may influence melatonin levels in the body, but more studies are needed to establish whether eating grapes before bed meaningfully improves sleep quality.