BRUNETE, Spain — In the worldwide battle to get dog owners to clean up after their pets, enter Brunete, a middle-class suburb of Madrid fed up with dirty parks and sidewalks.

Some cities hand out steep fines. But in these tough economic times, the mayor here, Borja Gutiérrez, did not much like that idea. Instead, this town engaged a small army of volunteers to bag it, box it and send it back to its owners.

“It’s your dog, it’s your dog poop,” Mr. Gutiérrez said. “We are just returning it to you.”

Until now, Brunete’s claim to fame, if it had one, was that it sustained heavy damage in the Spanish Civil War. But these days, this leafy hamlet has made headlines all over Spain. Residents say that strangers take note when they say they live in Brunete.

At a recent political event, Mr. Gutiérrez said, the mayor of Madrid sought him out.

“She said, ‘Well, it is not many mayors who think sending dog poop to voters is a good idea,' ” Mr. Gutiérrez said. “ ‘How did you dare?’ ”