The Frenchman was a key part of the Bayern team that won an historic treble last season.
“I had promised this to the fans and now the contract is done,” said Ribery. “For me and my family Munich is our second home and I am sure there are still one or two titles out there for us to win in the coming years.”