A 25-year-old man attempted to headbutt a police officer during a disturbance in Rosyth.
Callum Morris, of Castle Avenue, Crosshill, appeared at Dunfermline Sheriff Court.
He admitted that on March 19, at Castlandhill Road, Rosyth, he resisted two police officers, swore, made threats of violence, challenged them to fight, tensed his arms and attempted the break free.
He also assaulted an officer by attempted to butt him on the head.
Sheriff Charles Macnair called for reports and Morris will be sentenced on April 26.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here