Definitions for "Ex post facto law"
A law that makes something illegal and also provides punishment for those who did it before it was made illegal.
a law making criminal an act which had been legal when commited
A law that makes criminal an act that was legal when it was committed. (Latin: "after the fact").