Bayern Munich has agreed to a deal to sign James Rodriguez from Real Madrid on a two-year loan, with the Bundesliga champions holding a purchase option on the Colombian star.

Rodriguez, 25, will be reunited with Carlo Ancelotti at the Allianz Arena, with the Italian having brought James to the Spanish capital after his sparkling play at the 2014 World Cup.

James fell down the pecking order at the Santiago Bernabeu after the arrival of Zinedine Zidane as head coach in January 2016, though, and was left out of last season's Champions League final victory over Juventus, prompting renewed speculation he would leave the club.

And Bayern chairman Karl-Heinz Rummenigge stated that James, who will reportedly cost €5million (approx. $5.7 million) for each year of his loan and a further €35m (just shy of $40 million) to make the move permanent, was a primary target for Bayern.