Treaties can be loosely compared to contracts: both are means of willing parties assuming obligations among themselves, and a party to either that fails to live up to their obligations can be held liable under international law.
What must a party to a treaty do to prevent being held liable under international law?
live up to their obligations