A shareholders agreement is an essential document to confirm the rights of the shareholders, one against another and against other stakeholders in the business, and to set out how the shareholders intend to operate the company. It takes over where company law stops.