Two teenagers had to be rescued by the RNLI after they were cut off by the rising tide in Carmarthenshire.
A 16-year-old girl and a 15-year-old boy were stranded near Pembrey Old Harbour at about 2200 BST on Saturday, and called 999 for help.
They were attempting to walk between Pembrey Country Park and Burry Port, near Llanelli.
Burry Port RNLI's inshore lifeboat rescued the pair and they were reunited with their parents.
Swansea coastguard said it received a call from the girl who was "extremely upset" and concerned for her own and her friend's safety.
Coastguard officials kept her on the line while they alerted the RNLI.
Swansea coastguard watch manager Bev Haigh said: "These two teenagers were in real danger when they quite rightly dialled 999, although onlookers were advising them that they could make it ashore they were actually surrounded not only by deep water from the rising tide, but also by deep mud.
"Walking along the beach might seem like a shortcut home to some, but if you are intending on doing so you should always be aware of the hazards in the area, and check the tide times before you set out."