Ketamine is a medication primarily used for anesthesia induction and maintenance during surgery and other medical procedures. It is also used for sedation in intensive care settings and for pain control.