annulment
An annulment is a court order that your marriage was not valid from the start. You might get one if, for example, your partner was still married to someone else when they married you.
It is rare to get an annulment to legally end a marriage. Most of the time you need to get a divorce to legally end a marriage.