When a marriage or civil partnership ends, the court considers factors such as financial needs, income, earning capacity, contributions and the welfare of any children. The aim is to achieve a fair outcome based on your individual circumstances.