Caverject, which contains the active ingredient alprostadil, is primarily used to treat erectile dysfunction (ED) in men. It is administered via intracavernosal injection directly into the penis. Alprostadil relaxes blood vessels and increases blood flow, leading to an erection.