Broadcasting watchdog Ofcom has launched an investigation into the Channel 4 docudrama which imagined Ukip leader Nigel Farage as Prime Minister.

The show, set in a future in which Ukip won the 2015 general election, sparked 5,262 complaints.

A spokesman for the communications watchdog said: "Ofcom has carefully assessed a number of complaints about Ukip: The First 100 Days on Channel 4.

"We are opening an investigation into the programme as it may raise issues under our rules on offensive material, misleadingness and due impartiality. We are also considering fairness and privacy complaints about the programme. "

The docudrama depicted rioting on the streets in the wake of a Ukip general election victory and combined archive footage with imagined scenes.

It featured actress Priyanga Burford playing the part of the party's only Asian woman MP.

Her character is elected for Romford in an imagined landslide which puts Mr Farage in Number 10, but she is left grappling with her conscience as a factory closes in her constituency after the UK withdraws from the EU.

The programme - which depicted riots between protesters for and against tough anti-immigration raids - was strongly condemned by party leader Mr Farage.

"Look like 100 Days of Ukip may well have backfired on Channel 4. A biased, partisan depiction of the only party that Believes in Britain," he wrote on his Twitter feed.

Channel 4 has said "a lot of research" went into the film and that Mr Farage had been invited to watch it before it was broadcast and then to do an interview afterwards but he declined.

Mr Farage previously appeared in an alcohol-fuelled Gogglebox special on Channel 4, with "posh couple" Steph and Dom Parker.

A Channel 4 spokeswoman said: "We are confident that the programme did not breach the Ofcom code and we will be providing a response to the investigation."

A Ukip spokesman said: "As we know, Ofcom has received a huge number of complaints.

"They must now get on and do their job."