What is a Federal Crime?

Basically, there are two reasons that a criminal case is filed in federal court. Either (1) there is an alleged violation of federal, as opposed to state, law; or (2) the crime alleged took place on federal property.