Buy it already deveined if it's available, but that's not always an option, plus it's more expensive. To devein means to remove the dark, intestinal vein from the back of each shrimp.
This process is done with a sharp knife or a specialized deveining tool. A shallow incision is made along the vein allowing it to be gently pulled out and discarded.