The 29-year-old's previous deal was due to expire in the summer of 2020.
"Thanks to the club and technical team for their trust and respect, and to the fans for their support in every match, at all times," Otamendi tweeted.
Need a VPN? Or seeking to switch? Then support Tribal Football by clicking here to sign up with our official partners NordVPN. Not only will you receive the best VPN experience, but also great discounts by signing up via Tribal Football. Thanks for your support!