Kaka has completed his record £56million move from AC Milan to Real Madrid - but only after taking advice from David Beckham.
Real, who have agreed a £56m fee with the Serie A club, will make Kaka the best-paid player in the world at £200,000 a week over the six years of his contract - a total of more than £62m.
The 27-year-old forward, who has played in the same Milan team as former England captain and Manchester United hero Beckham since the new year, said: 'I spoke to some friends, like Beckham, who has already played for Real. He said it's a fantastic place to play.
'I spoke to him this past week and he kept helping me, he said I made a positive choice for my career's growth.
'I wanted this move to be announced sooner. For me it's a relief that it has been announced now, although I have always be 100 per cent focussed on the national side.
'I've been weighing up the offer from Real Madrid a lot. It's an important project for me to continue growing in my career. I'm not going to Real Madrid for money, as I had other offers. But I knew I would only leave Milan to play for Real Madrid.
'Only small details were missing, such as the medical exams I passed this morning. The deal was sealed long time ago.'
In addition to the massive fee Real will pay Milan, the La Liga giants will pick up his tax bill, taking advantage of Spanish laws on foreign nationals which mean it will be paid at 24 per cent.
Real doctor Juan Carlos Hernandez put Kaka through three hours of tests yesterday at a clinic close to the Brazil team's hotel in Recife.
Kaka added: 'I can officially say I'm a Real Madrid player. My professional link with AC Milan finishes now, but my sentimental link will never end.
'Real Madrid intend to build a great team, with historic players such as Raul and Casillas. We will make history again, both in Spain and Europe. I guess the sport project is very good.
The mystery of Kaka, Real Madrid and the transfer bid from Chelsea that never was 'Manchester City and Real Madrid are two different clubs with different situations. At that time (January), it was mid-season, I had a strong emotional impact due to the Italian fans requesting me to stay, and I decided to stay.
'Now another chance came up and AC Milan is in a big crisis (financially). For me, the sporting project (at Madrid) is interesting and will be an important boost to continue my career in the highest level.'
Real released a statement saying: 'Kaka is a Real Madrid player after an agreement with AC Milan. The Brazilian footballer has now successfully passed all medical tests. Kaka has signed a contract for the next six seasons with Real Madrid.'
The mammoth sums involved in Kaka's purchase underline club president Florentino Perez's determination to return Real to the pinnacle of Spanish and European football.
Kaka added: 'I wanted to stay on at Milan, but the world (financial) crisis affected a lot of clubs, especially those like Milan which are businesses.
'So then, I spoke with the Milan directors and we reached the conclusion that the best thing for everybody would be to sell.'
The mystery of Kaka, Real Madrid and the transfer bid from Chelsea that never was Kaka also revealed that new Real president Florentino Perez has been busy 'making contact' with potential targets as he looks to revive his 'Galacticos' project.
In Perez's previous stint with the club, he oversaw the acquisitions of global stars of Luis Figo, Ronaldo and David Beckham, as well as Zidane.
The likes of Cristiano Ronaldo, Xabi Alonso, David Villa and Franck Ribery have also been linked to the Spanish capital club since Perez's unopposed election signalled the return of their vast spending.
'The president (Perez) is already making contact (with potential signings) and is putting together a competitive team, one which will try to once again become champions in Spain and Europe. That's why I chose Madrid,' added the Brazil ace.
'They have historic players there already, such as Raul or (Iker) Casillas. Real Madrid will be an important challenge for me. We're going to win many titles again.'
The deal is also fantastic news for Kaka's father and agent Bosco Leite. Some sources claim Leite will pocket as much as £8.7m for his part in the negotiations, while others claim it will be nearer £3.9m.
However, it is not all expensive news for Real as they have agreed to spilt Kaka's image rights down the middle. Similar arrangements in the past with Luis Figo, Zinedine Zidane, Ronaldo and David Beckham saw Real recoup their outlay, according to Perez.
A statement on the Milan website read: 'From next season, Kaka will play at Real Madrid. AC Milan thanked the great champion Kaka for his decisive contribution to the many victories achieved in the six years of his commitment.
'The loss, while serious, can be remedied. It will be very difficult to fill the void that will be left by Kaka, a shining example of professionalism and commitment.
'AC Milan offer him the most cordial and affectionate wishes for the continuation of his sporting career.'
The medical was supposed to be held in secret. Kaka, the four-strong Madrid delegation, his father and Brazil team doctor Jose Luiz Runco left in two cars from the team hotel by a discreet exit at 9am local time. But hundreds of fans got wind of the tests and some managed to get autographs from the 27-year-old inside the clinic.
Kaka later returned to the five-star Atlante Plaza Hotel to finalise the move in the picturesque resort area of Praia de Boa Viagem. The Madrid delegation were staying close by.
Real fans will have to wait to see their new star paraded at the Bernabeu. Brazil face Paraguay in a World Cup qualifier tomorrow night and then travel to the Confederations Cup in South Africa, meaning the first galactico of the new Perez era is unlikely to be unveiled officially in Madrid until June 30.
Despite the massive outlay for Kaka, Perez will push ahead with plans to capture the cream of Europe's talent with Franck Ribery, David Villa, Cristiano Ronaldo, David Silva and Xabi Alonso all on his list.
Meanwhile, Portugal have released Chelsea's Jose Bosingwa and Deco from their squad to face Estonia in a friendly in Tallinn on Tuesday night without explanation. Ronaldo was also withdrawn with a groin injury.
Meanwhile Kaka revealed he fell uncomfortable taking on the number five jersey once worn by Zinedine Zidane.
Perez had admitted he would like to see the Brazilian playmaker take on the shirt, but Kaka said he would not feel comfortable doing so.
He said: 'Wearing the number five would be a great responsibility. Zidane was a great player, both for Real Madrid and for France, and I wouldn't like to wear the same number as he did.
'We're going to wait a bit before deciding which one to use.'