Environment officers have taken action against a homeowner who built an embankment without permission.
Natural Resources Wales (NRW) said unpermitted construction work had taken place on the bank of the River Thaw near Cowbridge.
The property owner had built a raised earth embankment around their home to protect it from flooding.
An outfall pipe had also been installed in the riverbank for drainage.
But NRW said there was a risk that the embankment could have diverted floodwater and increased the risk of flooding for neighbouring properties.
The riverbank was swiftly restored to its original state by the homeowner, who complied with a remediation notice from the environmental body.
A specialist team at NRW has investigated over 100 cases of illgeal river works across South Wales since it was formed in 2021.
They advise that people must apply for a permit from NRW if they want to work on or near a main river, a flood or sea defence or in a flood plain.
Tim England, NRW operations manager for flood management, said: "Our enforcement work across South Wales highlights the importance of regulating flood risk activities."
"We aim to educate, advise, and guide offenders while also addressing the impacts of works carried out without permission, using a range of enforcement actions to reduce the risk to people and wildlife."
"This work is an integral part of managing flood risk, helping nature to recover and making our communities more resilient to climate change."
NRW says their approach is to have constructive talks with offenders to provide advice and guidance about responsible practices to reduce the risks involved.
But some cases require interventions, such as enforcement notices, to remediate any harmful effects caused by the unpermitted activity.

Community Invited to Help Shape Llantwit Major’s Future
Senedd members call for better recognition of the impact of trauma in childhood
CCR Energy provide update following Aberthaw fire on Thursday
Plans have been put in place for an upgrade to a “state of the art” south Wales horse hospital
Lifeboat Crew Launch Within Minutes After Mayday Alert
Food Vale launches new cooking and nutrition programme across the Vale of Glamorgan
Senedd members press First Minister on biological sex, additional learning needs, and NHS jobs in FMQs
Littlechild & Haley Named Wales’ Professional Services StartUp of the Year
Meninigitis B vaccines to be offered to 17 and 18-years olds in Cardiff and the Vale
Barry Docks Wood Processing Plan Withdrawn After Months of Local Concern
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