The group were waist deep in sea water when two RNLI boats arrived at the scene at Southerness at about 15:40.
A major rescue was mounted after the alarm was raised by members of the public at the holiday resort on the Solway Coast.
Silloth Lifeboat crossed the Solway from Cumbria and joined lifeboats from Kippford along with the Nith Inshore Lifeboat.
Coastguard teams from Portling, Annan, and Kirkcudbright and a rescue helicopter was also called out along with police.
It is understood the group – thought to be a family on holiday in the area – became stranded after being cut off by the tide which can be fast-moving.