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."

Vale Councillor blasts school funding in the county
Bear Field Skate Park set for major upgrade as part of new Placemaking Plans
New apprenticeship courses in construction to be introduced in Wales
Former Penarth Bank could become a cafe
New poll shows majority of Welsh voters lack voting confidence ahead of Senedd Election
Construction hub secured for rail upgrades
Prolific thief banned from Holton Road
Cowbridge: plans for more holiday lodges
Man dies suddenly in Romilly Park
Cash boost for Sully Primary School
Speed limits reduced despite objections
Concern over imported chicken in school meals
A48 closed after three-vehicle collision
Rhys unveils red bench 'in living memory'
Barry: plans lodged for 70-home development
Plans to revamp Heritage Coast centre
Carnival drummers join pirate opera encore