If you are legally unmarried on the last day of the year, you file as unmarried, even if you were married to for most of the year.
Unmarried means you would file as single, unless you provided care in your home for a child dependent and meet the other qualifications to file as head of household.