The Camp Nou is set to undergo renovations which will be completed in the summer of 2025 and will be renamed the Spotify Camp Nou.
Spotify will also replace Rakuten on the front of the Barcelona jersey, with that shirt sponsorship deal starting as early as the start of next season.
"We are very proud to announce a pioneering alliance like this with a world-renowned organisation like Spotify," Barcelona president Joan Laporta said in a club statement.
"This partnership will allow us to continue to bring the club closer to its fans and make them feel, even more, part of the Barca family through unique experiences, combining two activities such as entertainment and football, making it possible for us to connect with new audiences around the world.
"It is also a union with which we continue to take steps forward in this new era that we have started, and which demonstrates, once again, the innovative character and the constant search of excellence that distinguish Barca and have made it a unique club in the world."
The Spotify deal will reportedly fetch cash-strapped Barcelona £235m.