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.

Network Rail announces community engagement sessions on future of Brookside level crossing
Coastal Litter Pick Series Announced for Glamorgan Heritage Coast
Glamorgan Archives invites visitors behind the scenes to discover centuries of history
£200,000 Secured for Next Phase of Barry RFC Sports & Community Hub Redevelopment
Walk‑In Hepatitis A Vaccination Clinics Open in Barry as Health Board Expands Outbreak Response
Over 27.4% of Vale GCSE students acheive A or A* Grade
Rhoose Community Library Marks Ten Years as Volunteer‑Run Community Hub
Calls to build a new Lido re-surface with resident saying the town "is in dire need of"
Barry Man’s 190‑Mile Charity Walk Reaches Day Two as He Heads Home to the Town That Changed His Life
Hepatitis A Vaccination Programme Launched for Young Children in Barry Amid Ongoing Local Cases
Barry Councillor Urges Local Chapels to Help Update Wales‑Wide Heritage Project
Dispersal Order issued at Cosmeston as council warns of ‘extremely dangerous’ behaviour
Three Rescues in 24 Hours as RNLI Barry Dock Urges Caution Around Sully Island
Police Investigate ATM Theft in Cowbridge After Pensioner Targeted
Break‑In at St Athan Community Centre Forces Volunteers to Divert Funds from Upcoming Events
Vale Students Celebrate Strong A and AS Level Results
Llantwit Major School Celebrates Record-Breaking A Level Success
Senedd recess: What have the Welsh political parties been up to so far?
Vueling withdraws winter flights to Aicante this winter
Playground in Barry forced to close after fire damages equipment