Scottish childcare minister Mark McDonald has resigned over allegations about his private life.
The MSP for Aberdeen Donside apologised "unreservedly to anyone I have upset or who might have found my behaviour inappropriate".
He said he was standing down as minister as a result.
In a statement, he said: "Some of my previous actions have been considered to be inappropriate - where I have believed myself to have been merely humorous or attempting to be friendly, my behaviour might have made others uncomfortable or led them to question my intentions.
"My behaviour is entirely my responsibility and I apologise unreservedly to anyone I have upset or who might have found my behaviour inappropriate.
"In light of my position in government, I believe it would not be appropriate for me to continue to serve in my role in the Scottish Government at this time and I have tendered my resignation as a minister.