14 people have been injured following an accident involving a funfair ride at Coney Beach in Porthcawl.
Emergency services were called out after the Wacky Worm rollercoaster derailed at around 5.50pm on Wednesday evening.
South Wales Police said 13 children and an adult have sustained minor injuries and some of the casualties have been taken to hospital for treatment.
The amusement park, which is due to close in October, will remain shut on Thursday while a health and safety investigation is carried out.
A police spokesperson urged the public to continue avoiding the area to allow access to emergency services.
They added: "We are aware of video and images of this incident circulating on social media. Please be considerate to those involved and refrain from sharing these."
In a statement, a spokesperson for Coney Beach said they were instructed to clear the site by police following "an incident on a third-party ride" not owned by the funfair.
They added: "We apologise for the disruption and will be providing refunds to affected guests as soon as possible. We will be releasing instructions on refunds shortly."
The Coney Beach site, which is owned by the Evans family, was recently purchased by the Welsh Government for a major waterfront regeneration project, which will include 1100 new homes, a primary school, shops and restaurants.
It opened in 1918, having taken its name from the famous New York amusement park at Coney Island.
Announcing the forthcoming closure last month, the owners said: "For over 100 years, we and other showmen and their families have lived and worked in Porthcawl, helping to make it a busy seaside destination bringing fun, laughter, and fond memories to so many."
"We will miss it greatly and while we are sad to see our time here come to an end, we are forever grateful to have had the opportunity to have been part of so many generations of families' lives, young and old."

Plans are under consideration to build over 200 houses in a sleepy Welsh village
Sanitary disposal bins introduced in men's public toilets following "Bins for Boys" campaign
Officers called to Dinas Powys Woods after young person enters the river
Vale Council signs off placemaking plan for Barry
Plans filed to use Blackweir Fields for a series of live events this summer
Plans filled for controversial housing development in Cowbridge
Cardiff Council pledges to work with new Welsh Government to tackle trouble-plagued hospital
RNLI issues Sully Island safety advice after first call out of the year to the Island
Morio Lounge on course to open at Nell's Point in May
Vale Council appoints specialist contractors to carry out road improvements
Three men jailed for their roles running a drugs line which supplied cocaine in Barry
Police appeal for witnesses after fatal Penarth Road collision
New Beach and country park facilities opened following major investement
RNLI centre at Barry Island welcomes lifeguards back to Whitmore Bay
Severn tidal lagoons progress