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

Post Office Seeks New Operator in Dinas Powys as Village Faces Loss of Its Last Branch
Gardening team praised after helping police clear fallen tree near St Brides Major
Specsavers calls on children in Barry to design Wales Deaf Rugby World Cup shirts
Whitmore High Named One of UK’s Best Workplaces for Development
Steel Signing Marks Major Milestone in St Richard Gwyn School Redevelopment
Two Rescues in Record Heat as Volunteer Teams Respond to Afternoon Emergencies
Police find evidence of a large-scale cannabis cultivation at Riverside Place property fire
Network Rail confirm closure of Brookside level crossing in Dinas Powys
Police given powers to ask people to leave Comeston Lakes Country Park
Planned children’s role play centre could be given the go-ahead by Vale Council
Marie Curie Garden Fayre deemed huge success
Council seeks views on Future of Colcot Sports Centre and Buttrills Playing Fields
First Minister quizzed on further devolution, budget decisions, and misinformation in FMQs
Extreme heat leads to changes to services and closures
Severe Heat Warning Set to Disrupt Rail Travel Across South Wales This Week
Communities asked to support older people across Wales during severe heat warning
Caribbean Community Wales Brings Wales‑Wide Launch to Barry This Weekend
Community Award winner calls for sanitary bins in men’s toilets after living with prostate‑cancer‑related incontinence
Cardiff Airport Backs Holiday Safety Campaign Honouring Rhoose Teenager Tom Channon