Wiese to leave Werder Bremen for Hoffenheim
Wiese, 30, is Germany's second choice keeper behind Manuel Neuer and is expected to be in the Euro 2012 squad.
"We did not want to miss out on signing such an experienced and ambitious professional," said Hoffenheim coach Markus Babbel.
Wiese, who earlier on Wednesday had said his agent was in talks with Real Madrid, will leave ninth-placed Bremen after seven years.
Hoffenheim are out of the running for European spots and are in 11th place with one game left in the season.