Wedding rings were exchanged, and photos of a smiling bride and well-dressed groom made it look like these were legitimate marriages.

But federal authorities argued Wednesday that the ceremonies were part of an elaborate, decade-long marriage fraud ring that netted a half-dozen people in Massachusetts millions of dollars.

Prosecutors charged six people, including the alleged ringleader Jennifer Gonzalez, with conducting as many as 20 marriages to help immigrants obtain legal status.