Real Madrid have confirmed that an agreement has been reached with Porto for the transfer of goalkeeper Iker Casillas.

In an official statement on the club’s website, Real Madrid wrote that today is not only a day where they have lost one of the best goalkeepers in the club, but he’s also the “best goalkeeper in the history of Real Madrid and Spanish soccer.”

“He was our captain and legend, which began since arriving as a child at nine years old. We are a 113-year club and Casillas has defended our team for 25 of those years.

“During that time, Iker has earned the respect, affection, admiration and support of fans beyond colors and feelings. 3 European Cups, 1 Club World Cup, two Intercontinental , 2 European Super Cups, five league titles, two Spanish Cups and four Super Cups in Spain with Real Madrid, and one World Cup and two European Championships with the Spanish national team are an important part of his legacy, but there is more. Zamora trophy, Trophy Bravo and 5 times elected best goalkeeper in the world.

SPECIAL OFFER: Sign up for a free 30-day trial to watch Porto games on NGSN.

“Iker is gone, but his example remains. His behavior during the 725 matches played wearing out shirt shows the way to those who dream of being part of this team. Thanks, Iker, for everything you’ve done. Thanks for being a symbol of the best in our history. But never forget that you belong forever to the heart of Real Madrid.”

The departure of Casillas from Real Madrid opens up the strong possibility that David de Gea may replace the legend at the Santiago Bernabeu.

Meanwhile, Real Madrid are also trying to sign goalkeeper Kiko Casilla from Espanyol, according to reports.