Two boys were rescued close to Bridlington Harbour on Tuesday afternoon after getting into difficulties while out body boarding.
A multi-agency response was launched after the Humber Coastguard received a 999 call at around 2.20pm from a member of the public saying the children were struggling with the tide and wind.
A quick thinking harbour employee threw a life buoy to the boys, who were being swept towards the harbour wall, and managed to manoeuvre the children to the steps.
An RNLI Lifeguard was quickly on the scene to assist the boys, who were aged 12 and 13, and gave them immediate first aid for cuts and bruises.
The coastguard was also in attendance and the Yorkshire Service transported the children to Scarborough Hospital to check the boys injuries, while two members of the RNLI went out to find the boys cousin who was on the beach waiting for them to return.
A spokesperson for the Humber Coastguard, said: “This had the potential to be a serious incident and the Lifeboat was about to be called out, it can get very cold in the sea at this time of year.
“The children had been pushed along by the tide towards the harbour. I am not saying that these children were not swimming between the lifeguard flags on the beach, but we would urge people to make sure they stick between the flags if they go out in the sea.”