MADRID -- An oceanside boardwalk collapsed during a nighttime concert in the Spanish city of Vigo, injuring 313 people, five of them seriously, authorities said Monday. Many young people were on the port's wooden boardwalk when it gave way around midnight Sunday at the closing event of a three-day festival, officials in the northwestern port city said.

The wooden boards cracked along a central section, about 130 feet long, and people slid down into the sea below, emergency services said. Eyewitnesses reported scenes of panic.

The head of the Galician region's health authority, Jesus Vazquez Almuina, told Antena 3 television that 313 people required treatment.

Get Breaking News Delivered to Your Inbox

The five people who were seriously hurt did not have life-threatening injuries, officials said.

The president of the Vigo port authority, Enrique Cesar Lopez Veiga, said he suspects there was a structural problem in the boardwalk, which is supported by concrete pillars.

Police investigators inspect the seafront platform in Vigo on August 13, 2018 after a section of a wooden promenade suddenly collapsed with people watching a rap artist just before midnight on Sunday. Getty

He told Cadena Ser radio that the boardwalk collapsed "probably because of excessive weight" on it.

Vigo mayor Abel Caballero announced an investigation.

The popular annual festival features music and urban sports such as skateboarding.