A Boston man was arrested and accused of acting as a spy for the Chinese government for years by providing information on local pro-democracy dissidents, federal prosecutors said.

Between about 2018 and 2022, 63-year-old Litang Liang allegedly worked with Chinese officials to spy on dissidents in the Boston area, the U.S. Attorney’s Office for the District of Massachusetts said in a statement on Friday.

Prosecutors said Liang, who is described in an indictment as a U.S. citizen living in Boston’s Brighton neighborhood, organized a counter-protest against pro-democracy dissidents and gave “photographs of and information about dissidents” to Chinese government officials.

Liang was indicted on one count of acting as an agent of a foreign government without notifying the U.S. Attorney General and one count of conspiracy to act as an agent of a foreign government without notifying the U.S. Attorney General.

RELATED:Department of Justice announces arrest of 2 Chinese officials accused of running NYC police station

Boston man kept tabs on dissidents in the US, charges say

Liang allegedly gave information on Boston-area people and organizations with “pro-Taiwan leanings.” He is accused in charging documents of alerting Chinese officials of the identity of a person Liang claimed had “sabotaged” Chinese flags during an October 2018 protest in Boston’s Chinatown. He also allegedly provided video of a dissident who attended a “Boston Stands with Hong Kong” rally in August 2019 and photographs of other dissidents in front of Boston Public Library in September 2019.

Liang called the people he took pictures of in front of the library “a bunch of clowns trying to cause trouble” in a message to a Chinese official, according to an indictment obtained by USA TODAY.

Liang used phone calls and the app WeChat to communicate with Chinese officials that included diplomats in the United States, the Ministry of Public Security and other bodies reporting to the Chinese Communist Party, the indictment said.