Many people who have sleep problems use sleeping pills. The most common side effect of these drugs, which have different mechanisms of action, is drowsiness. Some sleeping pills are available by prescription. These pills shorten the time it takes to fall asleep and foster sleep maintenance.