The SPF said Lord Bracadale’s position had become “untenable” after it emerged he met privately with the family of Mr Bayoh on at least five occasions since the start of the inquiry and “discussed evidence with them”.

General secretary David Kennedy said: “It is unfortunate for all those involved in the inquiry that this situation has occurred.

“The meetings between Lord Bracadale and the family of Sheku Bayoh had created an appearance of bias.

“We look forward to the final stages of the inquiry and bringing this matter to a conclusion.”

The Bayoh family’s lawyer Aamer Anwar said the inquiry – which started in November 2020 – had highlighted the “devastating and deadly force used on an unarmed black man”.

Mr Anwar added: “For the Bayoh family, an unholy trinity of the Police, SPF and Crown Office have tried their very best to shut down this inquiry, but they cannot hide from the truth.”

The Glasgow-based solicitor described the situation as “unprecedented”.

He told BBC Scotland News: “It has never, ever happened in any public inquiry in the United Kingdom.”

Members of the public called the police after Mr Bayoh was spotted carrying a knife and behaving erratically in the streets of Kirkcaldy on 3 May 2015.

He was not carrying the knife when officers arrived at the scene but a violent confrontation followed, with up to six officers restraining the 31-year-old on the ground.

Mr Bayoh lost consciousness and later died in hospital.