Boris Johnson had faced criticism for not taking such actions, despite similar steps being taken by other European countries as the pandemic worsens.
The announcement comes as the UK deals with a rising number of cases of the illness, increasing to 798, and a death toll of 11.
‘How a car crash saved my life’: Royal Preston patient recalls chance cancer diagnosis as hospital’s major trauma centre marks tenth anniversary
North West paramedics get "first of its kind" training to better deal with emergency maternity calls
Preston great-grandmother who arrived in UK a penniless refugee gives £5k gift to renal unit at Royal Preston Hospital
‘No guarantees’ over Lancashire blood test hub as pathology collaboration boss announces retirement
Lancashire dental crisis: Fulwood dental surgery Dentistry by Cure Clinics is offering free checkups this month
On Friday the World Health Organisation said Europe has become the epicentre of the pandemic and Donald Trump indicated he might add the UK to a list of countries facing a US travel ban.
On another day of dramatic developments in the spread of Covid-19:
- New restrictions are being imposed on visitor access to the Palace of Westminster and overseas travel by MPs and peers is being strongly discouraged to keep Parliament functioning during the crisis
- Mr Trump said the UK could be added to the list of European countries included in the US travel ban after he described cases of coronavirus as having risen "fairly precipitously" since he initially announced the ban with the UK exemption
- The leader of the Catholic Church in Ireland wrote to Stormont's Education minister urging him to consider closing Northern Ireland's schools over coronavirus. It came on the day the first cases of community transmission of Covid-19 not linked to travel were detected there
- The death of the first patient in Scotland took the total for the UK to 11
- The London Marathon, scheduled to take place on April 26, was postponed until October 4
- The Football Association announced the Premier League will be suspended until April 4.
- Next week's Champions League and Europa League matches were also postponed as was the Wales v Scotland Six Nations rugby match. England's cricket tour of Sri Lanka was also called off
- It was announced that local and mayoral elections in May were being postponed for a year
- Disneyland closed its parks, including Disneyland Paris, until the end of the month and suspended new departures on its Disney cruises
- Four major cruise ship companies - Carnival, Royal Caribbean, Norwegian and MSC Cruises - agreed to suspend trips from the US for 30 days
- A London Underground driver tested positive, while London's St Patrick's Day parade and celebrations on Sunday were cancelled
- The health minister in Wales announced the suspension of non-urgent surgical procedures and outpatient appointments, and said as many as 20,000 people could die in the country in a worst-case scenario
Scores of major sporting and cultural events have already been suspended, despite the Government resisting calls to ban mass events in its latest guidance earlier this week.
Scotland had already announced a ban on gatherings of more than 500 people.
Late on Friday a Whitehall source said: "Ministers are working with the chief scientific adviser and chief medical officer on our plan to stop various types of public event, including mass gatherings, beginning next week.
"We are also talking to businesses and other bodies about the timing of moving towards much more widespread working from home.
"There are many complex considerations to make all these measures as effective as possible.
"We will make the right decisions at the right time based on the best scientific evidence.
"We have drafted emergency legislation to give the Government the powers it needs to deal with coronavirus, including powers to stop mass gatherings and compensate organisations.
"We will publish this legislation next week."
The Times reported the laws could also give police and immigration officers to detain people if they are suspected of being infected and the ability to direct schools to stay open.
The newspaper said the laws could remain in place for two years.
The UK's chief scientific adviser Sir Patrick Vallance had previously said while it is "eye-catching" to order the cancellation of mass gatherings and sporting events, the chances of contracting the disease by attending such occasions are slim.
Mr Johnson had faced criticism from some experts as well as former health secretary Jeremy Hunt who questioned the decision not to cancel large gatherings
The Whitehall source said officials are "concerned about the burden large events put on public services - including the health service and the police - from dealing with coronavirus".
Sir Patrick has said the Government is hoping its approach to tackling coronavirus will create a "herd immunity".