The city agreed on Monday to pay nearly $1 million to participants in the monthly Critical Mass bicycle rides who claimed they had been wrongly detained and arrested by police officers.

The lawsuit, originally filed in 2007, represented the claims of 83 riders who had been arrested or ticketed by police during the rides from September 2004 to January 2006. The awards to the plaintiffs range from $500 for those who were cited for minor infractions, to $35,000 for a plaintiff who was arrested multiple times and was injured because of the arrests, said David B. Rankin, one of the three lawyers who represented the riders. About half the settlement will go toward legal fees.

The settlements, totaling $965,000, do not include the many lawsuits filed by riders who were arrested during the Republican National Convention in 2004.

The Critical Mass riders and the Police Department have a long, antagonistic history. Since 2004, riders have claimed that police officers harass them, take their bicycles and arrest them without reason. The police have said the cyclists violate traffic laws. The department has deployed hundreds of officers, a mobile command unit and a helicopter to monitor the rides, which wend their way through Manhattan on the last Friday of each month.