Everyone knows it's probably not a great idea to settle down with a mug of coffee at 10 p.m. if you have any hopes of falling to sleep soon after. But a new study from the University of Colorado Boulder sheds some light on how caffeine messes with sleep cycles—in a small study published in Science Translational Medicine, scientists found that caffeine keeps you awake because it's messing with your internal clock.