Ritalin is a prescription sleep medication used to help manage certain sleep difficulties. It may be considered when a person has trouble falling asleep or staying asleep. Because it affects activity in the central nervous system, Ritalin should be used carefully and according to professional medical guidance.