Soccer and baseball fans will be able to drink later as they enjoy the World Cup and All-Star Game this summer, thanks to a new law signed by Mayor Muriel Bower on Monday.

This means, between July 14 to July 18, eligible bars and restaurants will be able to serve alcohol until 4 a.m. and remain open 24 hours. This law comes as a blessing to fans seeking to enjoy the highly-anticipated events.

RELATED: DC bars, restaurants see playoff business bump

With the Major League Baseball All-star Game coming to D.C. for the first time in decades, you can expect thousands to pour into the city to enjoy it on July 17. In the week leading up to it, there will be events, such as a celebrity softball game and a workout day.

Meanwhile, the new law will allow World Cup fans to enjoy the tournament, which is being held in Russia, in real time as they’ll be allowed to open up at 7 a.m. for fans to watch the games. Matches will be held starting mid-June.

Bars will have to register and pay a $100 fee for the program, as well as clearly display their new license. Any establishment seeking to take part will have to register by June 7 for the World Cup and July 3 for the All-Star Game.

As D.C. law currently stands, establishments can sell liquor up to 2 a.m. on weekdays and 3 a.m. on weekends, with the exception of the days before federal holidays and New Year’s Eve.