Spain closed the doors on its biggest-ever festival at 6am today, the Rock in Rio event, which gathered more than 290,000 visitors, according to organizers.

Festival-goers paid between €49 ($77) and €65 ($102) to attend the festival, which spanned five days over two weekends and was held in a specially built Rock City at Arganda del Rey, 35 kilometers from Madrid.

The first Rock in Rio to be held in Madrid won't be the last. RiR's Brazilian founder, Roberto Medina, confirmed Sunday night that Rock in Rio will be staged at the same facility in 2010. "This has been an event of great pride," he said. Two of the festival's sponsors -- public TV network TVE, and department store chain El Corte Inglés -- also confirmed they will return in 2010.

Seven RiRs have been held to date - three in Rio, three in Lisbon, and the Madrid event.

Medina also said plans were in place for a third RiR edition for Madrid in 2012, and a 2014 return to RiR's 1985 birthplace, Rio de Janeiro, to coincide with the soccer World Cup to be held in Brazil that year. It is also planned to stage other RiR festivals in 2014, with organizers looking at both China and Italy as likely venues, Medina says.

Nine million viewers tuned in to live transmissions of the festival, Spanish public TV company TVE said.

The RiR Madrid festival featured many musical highlights. The June 27 first night witnessed Neil Young play his first Spanish concert since 2002.

July 4 marked the reaffirmation of Amy Winehouse as a genuine star, following a couple of dubious performances and well-publicised medical problems in recent weeks. Aided by a generous glass of red wine, Winehouse's performance grew in stature during her two-hours on stage. She was followed by an energetic Jamiroquai, and crowd-pleasing Colombian singer Shakira.

The televised coverage of Shakira's show on minority channel La 2 had an average audience share of 10.3% -- double La 2's normal share -- peaking at 13.6% and 1,332,000 million viewers at 00:23.

On the same evening at the smaller Hot Stage, Cuban hip-hop band Orishas became the first act to play three different RiR festivals.

Perhaps the best sound was offered by the Police on July 5, when they followed Spanish stars Estopa and Alejandro Sanz. La 2's coverage of Sanz's perform at 23:49, drew 1.2 million viewers, for a peak audience share of 11.4%.

Bob Dylan was one of the high points on a hot and sunny closing day. The artist allowed one fixed camera to film him for two big screens either side of the stage, just two weeks after being at the root of controversy when he refused to let any cameras record him when he played the Expo 2008 world fair at Zaragoza in northern Spain.

Mexico's Cafe Tacuba and Scotland's Franz Ferdinand performed either side of Dylan. The last performer on the World Stage was Lenny Kravitz, while DJs played through the early hours in the Electronica area.