Two ex-Teamsters union bigs were convicted of extorting Hub hospitals and local nonprofits by threatening protests if they did not give into their demands.

But a third co-defendant finished the 33-day racketeering trial in U.S. District Court in Boston with a mistrial and a fourth was acquitted.

Convicted in the RICO case were ex-Teamsters Local 82 secretary John Perry, 62, of Woburn, and his enforcer, Joseph “Jo Jo” Burhoe, 46, of Braintree.

Targets of “Perry’s Crew,” as federal prosecutors called the Teamsters gang, included Brigham and Women’s Hospital, Massachusetts General Hospital and the United States Green Building Council, U.S. Attorney’s office said in a statement. Local 82 was shut down by the national Teamsters union in 2011 and folded into Local 25 in Charlestown.

Perry and Burhoe were convicted of threatening to picket businesses and disrupt events just hours before they were scheduled to start. “Since 2007 the defendants engaged in illegal activities in order to generate money for themselves, their friends and family members,” federal prosecutors said.

The jury could not reach a verdict, and the judge declared a mistrial in the case of James Deamicis, 51, of Quincy. Thomas Flaherty, 50, of Braintree was acquitted.

Said United States Department of Labor Inspector General Scott S. Dahl: “Today’s convictions represent the Department of Labor, Office of Inspector General’s commitment to protect the American workforce from those who abuse their positions of trust and instill fear in others desiring simply to conduct an honest business.”