Image caption Clockwise from left: Oti Mabuse, Paddy McGuinness, Gary Lineker, Alex Scott, Rylan Clark-Neal, Emma Willis, Maya Jama and Tom Allen

The BBC's Sport Relief event had raised more than £40m for charitable causes by the end of its live TV show.

Gary Lineker, one of the hosts, said "a chunk" of the money would go to those affected by the coronavirus pandemic.

The fundraising marathon - which helps vulnerable people in the UK and around the world - went ahead in front of a live studio audience in Salford despite the health crisis.

The BBC said it would do "everything possible to keep people safe".

Match Of The Day presenter Lineker said the UK is living through "unprecedented times", stressing that "never have the vulnerable" been more at risk.

He hosted the fundraiser alongside Paddy McGuinness, Alex Scott, Emma Willis, Rylan Clark-Neal, Oti Mabuse, Maya Jama and Tom Allen.

Sport Relief had raised a total of £40,540,355 for charitable causes by the end of the live show.

Some of the money raised this year will go to projects dealing with challenges caused by the coronavirus.

Image caption L to R: Vicky McClure, Lee Mack, Adrian Dunbar, Martin Compston and Jason Isaacs

A BBC spokesperson said ahead of the event that the organisers had been "closely following the government advice" and that people's health and safety was their "priority".

A performance from Rita Ora had been due to be followed by a choir made up of elderly singers and schoolchildren - but the older members did not take part as a precaution.

The evening's broadcast included a Line of Duty sketch that saw the BBC drama's regulars joined by Jason Isaacs and comedian Lee Mack.

There was also a parody of BBC drama Killing Eve, in which a host of famous Steves - among them snooker legend Steve Davis and Olympic rower Sir Steve Redgrave - fell foul of a blonde assassin.

Image caption Stephen Fry and David Walliams in 'Killing Steves'

Other pre-recorded segments included a celebrity boat race that saw teams from the BBC, ITV, Channel 4 and Sky take to the challenging waters of Salford Quays under the tutelage of Olympic champions James Cracknell and Helen Glover.

Celeste, John Newman, Rita Ora and the Pussycat Dolls were among the music acts.

Image caption Helen Glover (left) and James Cracknell (right) with this year's Celebrity Boat Race participants

Special editions of QI, The Greatest Dancer and A Question of Sport were also screened, while A Round with Rom saw Romesh Ranganathan meet Sir Andy Murray on a mini golf course.

This year's appeal saw pop star Frankie Bridge, DJ Nick Grimshaw and other stars take part in a gruelling four-day trek across the Namib Desert.

Image copyright PA Media Image caption Nick Grimshaw in the Namib Desert

The expedition - moved from Mongolia because of concerns about coronavirus - was the subject of a documentary broadcast earlier this week.

Meanwhile, Radio 2's Jo Whiley, Richie Anderson and the Reverend Kate Bottley raised more than £500,000 by completing three triathlons in three days.

Other challenges undertaken this year included a joint effort to pull a British Airways plane more than 100 metres at London's Heathrow Airport.

Image copyright PA Media Image caption Iwan Thomas, Nicola Adams, Gabby Logan, Gary Lineker and Joe Wicks with Alfie Hewett (front)

Former boxer Nicola Adams, presenter Gabby Logan and Lineker were among those to take part in last week's record-breaking heave.

During Friday's broadcast, Top Gear host McGuinness paid tribute to Love Island presenter Caroline Flack, who took her own life last month.

Flack, 40, had worked with both Sport Relief and Comic Relief.

McGuinness said: "She will be greatly missed by us all."

The last Sport Relief, held in March 2018, raised more than £38m for charitable causes.

Follow us on Facebook or on Twitter @BBCNewsEnts. If you have a story suggestion email entertainment.news@bbc.co.uk.