A Rowley man allegedly exposed himself and began to urinate on the sidewalk outside of the town’s Market Basket Friday afternoon.

Richard A. Medico, 58, is being summoned to court for disorderly conduct and open and gross lewdness, according to police.

Medico was reportedly standing on the sidewalk outside the supermarket around 2:30 p.m. The incident allegedly happened while several bystanders, and a Rowley police officer, were nearby.

Get Boston.com's e-mail alerts:

Sign up and receive coronavirus news and breaking updates, from our newsroom to your inbox.