The 25-year-old has spent his entire career with the Pamplona club and has a minimum release clause of 12 million euros.
"I'm happy. Negotiations began months ago, but we were all very quiet as we knew it would end this way," said the full-back. "I am pleased to renew, and that the club have agreed.
"I have just renewed and I'm not thinking about leaving."