Ketamine is a medication mainly used for starting and maintaining anesthesia. It induces a trance-like state while providing pain relief, sedation, and memory loss. Other uses include for chronic pain, sedation in intensive care, and depression. Heart function, breathing, and airway reflexes generally remain functional. Effects typically begin within five minutes when given by injection and last up to about 25 minutes.