POLICE were forced to use CS spray on a Rosyth man after a violent struggle with officers at his home.

Police had visited the home of Alistair Gray, 28, of Grampian Road, after his partner had become worried about his mental health.

However, while they were trying to help him, he became aggressive and struggled with them.

Appearing for sentencing at Dunfermline Sheriff Court on Wednesday, he had previously admitted that on January 28, at his home, he resisted, obstructed or hindered two police officers in the execution of their duty by struggling violently and lashing out with his arms and legs.

Solicitor James Moncrieff said Gray's partner had expressed concerns about his mental health and wanted police to attend and remove him from the property. "They sought to move him from the property," he told the court. "He was in a position of compliance and thereafter started to behave erratically.

"At the time, there were no concerns raised about his behaviour towards his partner.

"His mental health issues, while they play a role in this matter, he does not shirk his responsibility. He accepts he was responsible for his actions."

Sheriff Charles Macnair placed Gray on a community payback order requiring him to do 90 hours of unpaid work within three months.

He told him: "Police officers were trying to help you and you repaid that help by committing this offence."