The bill was passed last month by the senate after international football authorities balked over an alcohol prohibition in Brazil's sports arenas that has been in force since 2003.
Lawmakers in May passed a package of measures demanded by FIFA that include selling beer in plastic cups, despite concern from some lawmakers that allowing alcohol consumption could lead to rowdiness at the events.
The announcement that the measure is now law was published in Brazil's official journal.
Its passage ends a long and strident battle between world football authorities and the Brazil government, which is eager to prevent hooliganism and violence as it hosts the sport's most celebrated event.
Emotions already can run high during the football premier championship event -- particularly during matches between powerhouses like Brazil and its neighbor Argentina -- and there will likely be plenty of fans from both countries at the tournament, increasing the possibility of clashes.
There were dire warnings that Brazil would regret the decision to allow beer to flow during the World Cup during the debate over approving the measure.
FIFA will still have to negotiate permission for beer sales separately with the individual Brazilian states concerned.
The bill also gives FIFA exclusive rights to pictures, sound and other forms of expression linked to the World Cup, with criminal and financial sanctions for any illegal reproduction.
The measure also reserves one percent of admission tickets for the handicapped and mandates that 300,000 tickets should be sold at discounted prices.
Rousseff signs law assuring beer will flow at World Cup
Advertisement