Tantrums

How does everyone deal with tantrums? My little guy has been having some from time to time and I’m not sure what to do, I try to distract him and it works sometimes but not all. For example we were playing outside and it was time to go in and he flipped out, he also flips when I take something he’s not supposed to have or when something isn’t working the way he wants. Any advice? I want to do the right thing so he doesn’t purposely throw tantrums to get what he wants