Former SNP MP Natalie McGarry has been jailed for 18 months for embezzling more than £25,600 from pro-independence groups.
She spent the money on rent, a week-long holiday to Spain, transfers of money to her husband and other lifestyle spending.
McGarry pleaded guilty to two charges of embezzlement on April 24 but tried to withdraw the guilty pleas at a later hearing.
Sherriff Paul Crozier said McGarry had no remorse for her crimes.
“Your fraud and deceit is of the most serious type. You were in a position of trust and you abused those positions," he said.
“You have fallen very far short of the standards the general public should expect from their elected representative.”
McGarry embezzled £21,000 from Women for Independence in her role as treasurer before she became an MP.
The rest was stolen during her time with the Glasgow Regional Association of the SNP.
McGarry was elected as an SNP MP in 2015, and did not seek re-election in 2017.
Her lawyer Allan Macleod said she should be spared jail due to mental health issues
McGarry was diagnosed with depression and anxiety in recent years, and had post-partum depression following the birth of her daughter in 2017.
Mr Macleod also said McGarry recently suffered a “devastating” miscarriage while six weeks pregnant.
“She was pregnant and miscarried, that happened on Sunday and that is something that for her has been absolutely devastating," Mr Macleod said.
“She is at the lowest point in her life she has ever been. Her career is ruined, her reputation is in tatters, she has lost friends, colleagues, her reputation and job, and now her child.”