Bayern announced that the 36-year-old forward will be leaving the club on its website. The former French international made more than 400 appearances in 12 years with the German club.
Franck Ribery will leave Bayern Munich at the end of the season after 12 years with the Bundesliga side, the club said Sunday.
"When I came to Bayern, it was a dream come true. It won't be easy to say goodbye, but we must never forget what we've achieved together," he said.
"FC Bayern owes a lot to both of them and we will give them a wonderful and emotional farewell. They've helped shape FC Bayern's most successful decade with fantastic football," Bayern chairman Karl-Heinz Rummenigge said.