In medical settings, ketamine is used for inducing and maintaining anesthesia, especially in situations where other anesthetics might not be suitable. It has also shown promise in treating treatment-resistant depression and chronic pain conditions. Its rapid onset and short duration make it a valuable tool in emergency medicine.