The purpose of an assignment, in various contexts, is to transfer certain rights, responsibilities, or interests from one party to another. In the case of a mortgage assignment, it allows the lender to transfer the right to receive mortgage payments to another entity.