Rolling Stone has agreed to settle a defamation lawsuit brought by the University of Virginia fraternity at the center of a discredited article about an alleged gang rape, effectively closing the door on a pivotal and damaging chapter in the magazine’s history.

Under the terms of the settlement, the magazine agreed to pay the Virginia Alpha Chapter of the Phi Kappa Psi fraternity $1.65 million. The fraternity had originally sought a trial by jury and $25 million in damages.

“It has been nearly three years since we and the entire University of Virginia community were shocked by the now infamous article,” the fraternity said in a statement, “and we are pleased to be able to close the book on that trying ordeal and its aftermath.”

The fraternity said it planned to donate “a significant portion” of the settlement to groups that offer sexual assault awareness education, prevention training and victim counseling services on college campuses.