Celery contains magnesium which helps to relax your nerves and when those nerves are relaxed it helps you sleep better.
So if you're having trouble sleeping snacking on some celery before bed or drinking some celery juice before you go to bed can help you get to sleep naturally when you're dealing with insomnia.
Celery is also a diuretic which can make you urinate more at night as well so you might need to get up in the middle of the night to pee.