A 38-year-old drunkenly shouted at members of the public before wetting himself at the bus station on Wharf Road.
Michal Jurkiewicz, of Harrowby Road, Grantham, admitted being drunk and disorderly in a public place on April 12.
After shouting at passers-by, police officers asked Jurkiewicz to leave the area, but while still at the bus station he urinated himself and was then arrested.
At court Jurkiewicz said he could not remember anything of the incident and had been “acting crazy”.
He was given a conditional discharge of 12 months by Grantham magistrates.