Tacrolimus is an immunosuppressive medication primarily used to prevent organ rejection in patients who have undergone organ transplantation. It works by inhibiting the activity of the immune system, thereby preventing it from attacking the transplanted organ.