In criminal law, an "ex post facto" law may criminalize actions that were legal at the time they were committed, or may make a crime worse by bringing it into a more severe category than it was in when it was committed.
