Which of the following reasons is mainly responsible for graft rejection in transplantation of organs?