A gun-trafficking ring in Virginia brought more than 200 legally purchased guns up the I-95 corridor to New York, where they unwittingly sold them to an undercover detective, according to an indictment unsealed on Wednesday.

The indictment of 627 counts charged 24 people, some of whom have violent criminal records and ties to the Bloods street gang, with conspiracy and illegal weapons sale and possession. In all, the authorities recovered 217 guns, including 41 assault weapons like AK-47s, AR-15s and a Thompson submachine gun.

In telephone conversations recorded by wiretap and played at a news conference in Downtown Brooklyn, where officials announced the indictment, some of those charged could be heard boasting about their roles as traffickers and mocking Virginia’s lax gun laws.

“We’re the big dogs,” Kenneth Threatts of North Chesterfield, Va., said in one recorded conversation in November. “We’re trafficking! You know what I’m saying?”