Community service was a punishment for minor criminal offenses. It entailed performing tasks which either improved or maintained facilities within the community.
The Bajorans made use of community service as a punishment. Vandalizing an area with graffiti on Deep Space 9 was one crime that could be penalized with community service.
Ojuy Gel was forced to perform community service after one instance of vandalism in 2372. An arbiter sentenced him to three weeks of sanitation duty. (DS9: "Crossfire")