A prenuptial agreement, also known as a prenup, is a legal document that outlines how assets will be divided in case of divorce or death of one spouse.