Liverpool's quiet approach to negotiations ultimately proved successful, despite Salah's occasional public expressions of frustration.
Salah's recent dip in form highlighted his importance to the team, prompting Liverpool to offer a new deal despite their reluctance to give long contracts to older players.
The new contract will keep Salah at Liverpool until he is 35, allowing him to potentially reach 300 goals for the club.
Salah's decision to stay reflects his commitment to Liverpool, his recognition of the team's quality, and the positive relationship he has with manager Arne Slot.