system
Given the following post, respond as if you're commenting on Reddit:
human
[MCU] Why is Peter Parker not persecuted under the Sokovia Accords?

Spider-Man: Homecoming takes place after Civil War, so the Sokovia Accords would be in effect. Why is Peter Parker not charged for his unauthorized heroics in DC and New York?
gpt
The Sokovia Accords only deal with powered individuals acting internationally. It's essentially designed to stop powered individuals from sparking the next nuclear arms race; all of the member nations of the UN promised not to send their supers into another country without UN approval.

What happens within a nation's own borders is entirely up to that nation. When SHIELD acts internationally, they're governed by the Accords. When they act in New York, they're governed by the laws of the United States.

The same is true for Peter Parker. If he goes up to Canada, the Accords take effect, but as long as he stays in Brooklyn, he only has to worry about the laws in effect in New York City.

Now, some of what Peter does is still technically illegal, but the authorities in the MCU (and the 616 comics universe, up until their own Civil War), are for the most part content to look the other way.