Mixing caffeine with sleeping pills can worsen the sleep cycle of a person. The stimulating property of caffeine may hamper the medication's sedative effects.