The current literature needs to include studies examining the path from social support to forgiveness. This study aimed to examine cognitive flexibility as a mediator between social support and forgiveness in university students and gender as a moderator of this pathway. Data were collected through online by a sample of 243 students, 204 (84%) female and 39 (16%) male, chosen by a convenient sampling method and voluntarily filled in the scales. Cognitive flexibility was found to be a significant mediator in bootstrapped tests of indirect effects, and this mediation effect was moderated by gender. In the relationship between social support and forgiveness, male participants forgive more as their perceived social support increases; female participants forgive more regardless of their perceived social support level. In light of the literature, these findings were addressed.