A fishing boat was rescued after it got into difficulty near Stout Point in fading daylight.
The 37ft vessel called for help when its propeller and rudder were fouled by debris in the water late on Thursday afternoon.
It ended up drifting dangerously close to the reef of the beach at Llantwit Major amid easterly weather conditions and an outgoing tide.
The RNLI at Barry Dock sent out its all-weather lifeboat to rescue the fishing boat by tow, preventing it from the risk of running aground.
It was eventually taken to Barry Harbour and secured onto a swinging mooring following a four-hour operation. The crew on board the fishing boat were safe and unharmed.
Andy Gavan, coxswain at RNLI Barry Dock, said: "This shout highlights the importance of being prepared and responsive at sea."
"Thanks to the professionalism of the crew and their swift actions, we were able to assist the fishing vessel and prevent what could have been a much more serious situation."

Swapping date night for drysuits at Barry Dock RNLI
13,900 French Rugby Fans fly into Cardiff Airport ahead of Six Nations Fixture
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