Bayern Munich has confirmed an agreement has been reached to sign goalkeeper Alexander Nubel once his Schalke contract expires at the end of the season.
The 23-year-old informed Schalke last month he would not be renewing his deal amid links with a number of clubs, including Premier League side Tottenham.
Bundesliga champion Bayern announced on its official website on Saturday that Nubel has agreed to a five-year contract at Allianz Arena, starting from July 1.
Ex-Germany Under-21 international Nubel made the switch from Paderborn to Schalke in 2015 and has been dubbed in some quarters as the new Manuel Neuer.
He made headlines in December for an ugly challenge on Eintracht Frankfurt midfielder Mijat Gacinovic, resulting in a four-match ban.
Schalke is fifth in the Bundesliga table and three points adrift of third-place Bayern, which recently placed Hansi Flick in caretaker charge until the end of the campaign.