The sting put female police officers in plain clothes working undercover in North Laurel along the Route 1 corridor, in an area where residents had complained about prostitution.
The eight men approached the female officers and offered them money for sex; they were subsequently charged with solicitation of prostitution, police said.
The police have used similar stings regularly for years in an effort to combat prostitution in North Laurel.
The police department has asked people to call 410-313-7867 with any tips or information about prostitution and related criminal activity. Callers can remain anonymous.