The Argentine dethroned three-time winner Cristiano Ronaldo in adding to his four consecutive awards from 2009 to 2012.
Brazil star Neymar, who also plays for Barca, came third in the vote by national team coaches and captains, and journalists.
“It’s a very special moment to come back, to get a Ballon d’Or again after the two years in which Cristiano Ronaldo won each time,” said the 28-year-old Messi.
“It is incredible that it’s my fifth. This Ballon d’Or means more than I could have ever dreamed of as a child.”
Messi, who voted for his Barca team-mate Luis Suarez, had 41 percent of the vote, Ronaldo getting 28 percent and Neymar 8.0 percent.
His victory continued the duopoly of the award he enjoys with Ronaldo that has lasted since Brazilian Kaka claimed top honours in 2007.
“We have always had a good relationship,” said Messi about his rivalry with Ronaldo.
“We share a profession, we have our day-to-day battles because we are playing for different teams, but it is more in the press that they compare us for one reason or another.
“On our part, there has always been admiration and respect.”
Messi was the star player as Barcelona won the treble of Champions League, La Liga and Spanish Cup last season, before also adding the Club World Cup last month.
Although he became the first ever player to win the award five times, Messi had said earlier that he would swap all those individual accolades for a World Cup success.
“Team awards are more important than individual ones,” he said, before adding that the World Cup “is every player’s objective, it’s really the pinnacle”.
Messi and his Argentina teammates came close to winning the World Cup in Brazil in 2014 but were beaten 1-0 by Germany in the final.
His Barcelona boss Luis Enrique won the coach of the year award while Jill Ellis took the women’s trophy.
She had guided the US to women’s World Cup glory in Canada last summer, beating Japan 5-2 in the final.
Carli Lloyd scored a hat-trick in that match and that was enough to help her land the FIFA women’s player of the year gong.
She had also previously scored the winning goals for the US in the Olympic Games finals of 2008 and 2012.
Enrique edged out Bayern Munich boss Pep Guardiola and Chile coach Jorge Sampaoli.
Brazilian Wendell Lira won the Puskas award for goal of the year for his spectacular overhead bicycle kick for Goianesia in a regional league match, edging out Messi’s own mazy dribble against Athletic Bilbao in last season’s Copa del Rey final.
Barca and Real dominated the team of the year as well with four players each, including Messi, Neymar and Ronaldo.
The only players from outside the two Spanish superpowers were Bayern Munich’s Germany international goalkeeper Manuel Neuer, Brazilian centre-back Thiago Silva, who plays for Paris Saint-Germain, and Juventus’s France midfielder Paul Pogba.