A man has been rescued after he got into trouble in the water near the Old Harbour pier in Barry.
Police began a search for the man at around 9pm on Friday night, amid concerns for his safety.
Emergency services, including the Barry Dock lifeboat, the coastguard and the police helicopter from St Athan, were called out to join the search.
He was later spotted in the water near Friars Point.
Police praised the ''quick thinking'' of the helicopter pilot, who deployed buoyancy aids in mid-air to the man, who was struggling to stay afloat.
It allowed enough time for the casualty to be taken aboard the lifeboat, before he was taken on shore and treated by Welsh Ambulance Service paramedics. He was later taken to hospital.