If parties want to live apart, but wish to remain legally married, they would enter into a legal separation. The legal separation is a written agreement or a court order setting out the terms under which the parties will live. A legal separation does not formally dissolve the marriage and does not permit the parties to legally marry another person.