Prepare the smoker by filling the hopper with your choice of wood pellets.
Switch it to smoke mode and let it run for 5 to 10 minutes.
Mix the salt, brown sugar, cumin, coriander, black pepper, and red pepper flakes together in a bowl.
Rub this mixture generously all over the pork shoulder.
Place the pork shoulder in the smoker.
Set the temperature to 250 degrees Fahrenheit.
Smoke the pork for approximately 6 hours, or until it reaches an internal temperature of 195 degrees Fahrenheit.
Remove the pork from the smoker.
Wrap it in aluminum foil and let it rest for about 30 minutes.
This allows the juices to redistribute, ensuring tender, flavorful meat.
After resting, shred the pork shoulder using forks.
Serve it with your favorite side dishes.