Contract between a firm and its shareholders which details, among other items, how the firm's internal affairs will be managed, how internal disputes will be resolved, and what will happen when a shareholder becomes bankrupt, is discharged, resigns, retires, becomes incapacitated, or dies. See also stock purchase agreement.