A stock purchase agreement is a contract in which the owner of shares or stock in a company (a person, entity, or the company itself) sells some or all of the shares to another person or entity. Stock purchase agreements are often used when the majority ownership interest in a company is acquired by another person or entity. For more information on the transfer of ownership of companies, see the Common Legal Topic on mergers and acquisitions.