Antecedent and Precedent?

Hi Teachers

What is the difference between antecedent and precedent?
(ante-cedent vs pre-cedent)

Could you give me some examples?

Thanks

Mark

After considering the antecedents of the accused, the judge decided not to follow legal precedences and imposed a deterrent sentence on him instead.