According to Section 151 of the Indian Penal Code 1860,
Knowingly joining or continuing in assembly of five or more persons after it has been commanded to disperse — Whoever knowingly joins or continues in any assembly of five or more persons likely to cause a disturbance of the public peace, after such assembly has been lawfully commanded to disperse, shall be punished with imprisonment of either description for a term which may extend to six months, or with fine, or with both.
Explanation — If the assembly is an unlawful assembly within the meaning of Section 141, the offender will be punishable under Section 145.