Messi had clanged the crossbar in the first half from a set piece and Ousmane Dembélé forced the visiting goalkeeper, Pacheco, to make an impressive save while Luis Suárez looked ineffective.
Substitute Philippe Coutinho added a well-taken late third before another fine bit of individual skill from Messi wrapped things up in stoppage time.
PUBG Mobile Now Has Over 100 Million Downloads on Android, iOS
The game also recently surpassed 14 million daily active users in less than four months (excluding China, Japan, and Korea). The game recently feature in-game items based on action movie, Mission: Impossible - Fallout.
"It's possible - we know his tendency to be drawn to where the ball is", Valverde told reporters, adding that regardless of where Messi plays on the pitch, the team will gain fruitful results.
It means that 6.5% of the goals by Barcelona in their history have been scored by the 31 year old.
It was also the 6,000th goal Barca have scored in La Liga.
Reduce risk of early death by eating carbohydrates in moderation
However, it's not an excuse to pile your plate with them - as the study also found that eating too many carbs damages health . Essential nutrients should be consumed above a minimal level to avoid deficiency and below a maximal level to avoid toxicity.
Messi will hope to lead Barcelona to more silverware this season, while his perennial battle with Cristiano Ronaldo will have to take place exclusively in Europe after the Portuguese forward left Real Madrid for Juventus.
Gerard Moreno, Villarreal's biggest off-season signing, put the hosts ahead in the 16th before Sociedad came back with goals by Willian Jose in the 40th and Juanmi in the 71st.
Celta began its campaign in Vigo with Argentine coach Antonio Mohamed, and Espanyol kicked off its season with newcomer Joan Francesc Ferrer "Rubi". No one did. It was like the one he scored against Girona last season.
Arsenal's Lucas Torreira could get first start against Chelsea
Maurizio Sarri meanwhile enjoyed his second win in as many games, and now finds himself at the top of the Premier League table. With two losses out of two, the Arsenal boss is under enormous pressure to deliver against West Ham.
Atletico Madrid - last season's runner-up - visits Valencia on Monday.