A shareholder agreement will protect minority shareholders by ensuring they have a say in key decisions and by preventing the majority shareholders from acting in ways that may unfairly impact their rights. It also protects majority shareholders by clarifying the decision-making process and those concerning potential deadlock situations.