On 26 August 2020, Lam was arrested on charges of "rioting" for showing up in Yuen Long station on 21 July 2019, and "conspiring with others to damage property and obstructing the course of justice" in Tuen Mun on 6 July 2019. He was granted bail the same month, which was extended in December under condition of a ban on leaving Hong Kong. Prosecutors had cited the case of Ted Hui, without mentioning his name, as a reason for an increased risk that Lam would abscond. On 28 December, Lam was arrested for allegedly disclosing personal details of individuals under police investigation for their possible role in the Yuen Long attacks. Lam was again arrested on 6 January 2021 as part of the 2021 arrests of Hong Kong pro-democracy primaries participants. In May 2021, a representative of Lam said that Lam and eight other people who had been injured in the Yuan Long attack had decided to drop the civil lawsuit against Police Commissioner Chris Tang that they had filed in January 2020 in relation to the attack, citing the legal fees; his lawyer Albert Ho said that Lam felt "very tired having to attend all these [multiple charges]".