system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: What does diplomatic immunity in the U.S. Grant you?
gpt
It's not just in the US - most countries recognize diplomatic immunity. It basically means you agree not to hold a diplomat responsible for what they do in your country. Instead of charging them with crimes, etc., you just kick them out. It helps ensure that countries don't hold each other's diplomats hostage on some pretense that they committed a crime.

Diplomatic immunity doesn't mean you can do whatever you want. You still generally have to obey the laws of the host country or your home nation will get mad at you. And if you commit a serious crime that's unrelated to your diplomatic position your home nation may try you for the crime itself or waive your immunity. However, diplomats are able to get away with parking pretty much wherever the hell they want without having to worry about the consequences of parking tickets.