NEW DELHI — After a trial lasting more than seven years, aspecial antiterror court in Mumbai convicted 12 men on Friday in connection with near-simultaneous bombings in 2006 on seven commuter trains in the city, an attack that killed more than 180 people and left 800 wounded, a prosecutor said.

The men, ranging in age from their late 20s to early 40s, were convicted of various charges, said Raja Thakare, the special public prosecutor who argued the case. Judge Yatin D. Shinde found five guilty of murder; all 12 were convicted of criminal conspiracy and belonging to a terrorist group. A 13th suspect was acquitted. A sentencing hearing is scheduled for Monday, Mr. Thakare said.

The prosecution had argued that the men, who are from various parts of India, were members of the Students Islamic Movement of India and that they colluded with the Pakistan-based militant group Lashkar-e-Taiba to carry out the attack. Some of the men conspired at a meeting in Mumbai to plan the attack and others planted the bombs, Mr. Thakare said.

The police filed charges against the men four months after the attack. They said, however, that evidence was difficult to gather because there were no unexploded bombs and it was raining at the time of the blasts, meaning that crucial evidence may have washed away.