A crime is considered federal when the person does criminal activity in multiple states or when the criminal violates the U.S. federal legal codes. Some examples of the same are drug trafficking, human trafficking, wire fraud, etc.