The goalkeeper was courted by Real Madrid all summer, and the Spanish giants were thought likely to get their man as they usually do.
Many fans online reacted with surprise and delight to the news, although others were sceptical that the deal would be enough to put off Madrid for good. Here is a round-up of the best responses.