retroactive law
noun
variants:
or retroactive statute
Definition of retroactive law
: a law that operates to make criminal or punishable or in any way expressly affects an act done prior to the passing of the law — compare ex post facto law