Emergency services were called to Aberdeen Harbour after a man became trapped on a ledge above shallow water and rocks.
Worried onlookers called police at around 3am today after becoming concerned for the welfare of a man who could be seen climbing up the north harbour wall.
Police, firefighters and a lifeboat crew were called to assist and the man was pulled to safety.
A Police Scotland spokesman said: “The man was taken to hospital as a precaution and later released into the care of his family.
“We got a call at around 3am to the north harbour wall from someone concerned about a man who had climbed the wall at the north breakwater.
“He became trapped on a ledge about 20m above an area of shallow water and rocks.
“Fortunately, nobody was hurt.”
A Scottish Fire and Rescue Service spokesman said: “We got a call from police asking for assistance shortly after 3am and two units from Central Fire Station in Aberdeen attended.
“The crews used a short extension ladder to assist the man and the stop message came through at 3.25am.”
A Coastguard UK spokesman said: “Aberdeen inshore lifeboat launched at 3.10am to assist police and the fire service with an incident at Aberdeen north breakwater.”
The lifeboat crew was stood down at around 3.45am.