Even if your spouse lives out of state, you can file for divorce in Massachusetts if you have lived in Massachusetts for at least one year or if you and your spouse have lived together as a married couple in Massachusetts and the grounds for divorce occurred in Massachusetts.