The main purpose of the Secure Takedown and Obstruction Prevention Act, also known as the STOP Act, is to enhance the safety of law enforcement officers and the public by making it illegal to barricade oneself while trying to evade arrest. This law aims to address the growing challenges and dangers faced by law enforcement during their duties, particularly when individuals resist arrest by barricading themselves in a location.