A 21-year-old pleaded guilty to breaking the public order act during an altercation with police.
Adam Grant, of Kestrel Court, Grantham, appeared before magistrates charged with disorderly and or threatening and abusive behaviour.
Shelley Wilson, prosecuting, said the incident happened at about 1am on April 21 when police were on duty in Market Place.
Next to the Market Cross the defendent barged into a police officer, and was issued with a section 27 notice to leave the area.
At first Grant accepted the order and walked to a taxi, but when his friend began shouting at a neighbouring group he joined in, swearing and shouting.
Police again approached Grant, who elbowed an officer and was arrested, spending the rest of the night in custody.
Stuart Wild, defending, told the court that full-time groundworker Grant had been persuaded by friends to go out on the bank holiday, and during the night drank far more than he is used to being someone who normally abstains from alcohol.
Mr Wild added that his client did not accept that he barged into the officer deliberately, and did have the instinct to try and go home.
Grant was given a suspended sentence of six months, and ordered to pay prosecution costs £85 and a victim surcharge of £15.