A prenuptial agreement provides a legal framework for dividing assets and determining spousal support in the event of a divorce.