The food you eat at night can affect your sleep. Foods high in carbohydrates may be detrimental to a good night's sleep, while a diet high in fat can help you sleep deeper and more restfully.