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

Former Holm View Leisure Centre could become education and community hub
ScoutsCymru members represent Wales at Royal Albert Hall Festival of Remembrance
Plans for indoor market at former Barry Wilko move forward
Police given additional powers to deal with anti-social behaviour in Barry
Senedd passes supplementary budget with £60m boost for additional learning needs
Future of planned festive events in question after criminal damage to Barry Town Hall
Consultation to open on plans for 35MW solar farm near Penarth
No Trains through the Vale of Glamorgan this Sunday
Police and Cardiff City launch operation to tackle matchday anti-social behaviour
Free leaf and fallen fruit collections return in the Vale
Barry retains Fairtrade Town status until 2029
£1m improvements planned for Pencoedtre Park as splashpad work set to begin
Plan submitted for new independent school on site of well-known charity farm
Is your hot water bottle safe?
Solicitor sentenced for defrauding Cancer Research UK
Cate is crowned champion!
WATCH: Winner of The Voice UK Cate McHugh duets with Sir Tom Jones
Barry filmmaker takes her documentary to the big screen in New York
Pupils leave their mark on new school at steel signing event
£3m refurbishment plans revealed for Cowbridge Town Hall