The child, whose age has not yet been confirmed, got stuck on a rock near to St Monans Church in Anstruther, Fife, on Sunday evening.
A Royal National Lifeboat Institution (RNLI) crew was launched to help the youngster who had been stranded “for a considerable amount of time.”
The boy was helped to the lifeboat and returned to St Monans Harbour where he was passed to a waiting Coastguard Rescue Team.
Crew member Euan Hoggan scaled the rock to help the boy.
He said: "This was a very straightforward rescue for the team. The young man was stranded on the rock for a considerable amount of time before the alarm was raised.
"We urge anyone in difficulty around the coast to dial 999 and ask for the coastguard."
The lifeboat returned to Anstruther shortly before 6pm.