The main purpose of this legislation is to establish stricter consequences for international students who engage in violent behavior, specifically targeting those who assault police officers or participate in rioting. The law aims to enhance public safety by ensuring that individuals who commit such offenses while on student visas face serious repercussions, including the potential revocation of their visas and deportation.