How can I sleep when I keep having to go to the bathroom?

Don't drink liquids just before going off to sleep or you will inevitably find that you have to wake up to go to the bathroom. Try to avoid anything that will force you to get back up once you have settled down for the night.