The Irish government says all pubs in the country should close until at least the end of the month to curb the spread of coronavirus after videos of singing in packed Dublin venues sparked anger on social media.
The move comes just two days before the country's national day, St Patrick's Day, which traditionally sees bars across the country packed from early in the day.
The annual parade celebrating the day had already been cancelled.
Ireland has had 129 confirmed cases of COVID-19 and two deaths.
It closed schools and universities last week and advised people to cancel all indoor gatherings of 100 people or more.
But it stopped short of closing cafes, bars and restaurants, as some European countries have done, citing the potential impact on workers and small businesses and saying owners should ensure customers are kept at a safe distance from each other.
But videos showing packed bars with sing-alongs and crowded streets in Temple Bar, Dublin's busiest nightlife district, went viral on social media on Saturday under the #CloseThePubs hashtag.
One stag party, usually involving a group of men celebrating shortly before one of their number gets married, was shown walking down the street in medical overalls and face masks.
Ireland's Health Minister Simon Harris, described the images of packed pubs as an insult to medical workers.
A number of pubs had announced voluntary closures, but on Sunday afternoon the government moved after a meeting with pub owners, and called on "all public houses and bars (including hotel bars) to close from this evening until at least March 29".
Publicans reported "real difficulty in implementing ... guidelines on social distancing ... as pubs are specifically designed to promote social interaction in a situation where alcohol reduces personal inhibitions," the statement said.
It called on people not to organise private parties for the same reason.
Twitter users praised the pubs that had closed voluntarily, with the DublinByPub.ie bar guide offering a list of responsible pubs "to go on the lash in when this is all over".