Ketamine is a medication primarily used for anesthesia, known for its rapid onset and dissociative effects. It can induce a trance-like state, making it useful for both surgical procedures and pain management, while also having potential applications in treating depression and other mood disorders.