Premier Helen Zille has welcomed the outcome of a high court ruling on Monday that a commission of inquiry into alleged police inefficiency in Khayelitsha was indeed legal.

Police Minister Nathi Mthethwa lost a court bid to halt the commission, which was set up by Western Cape premier Helen Zille last year.

"It's a great affirmation of our understanding of the role of provinces in providing oversight to the police," said Zille's spokesperson Zak Mbhele.

Mbhele said he hoped the commission could now continue with its work unhindered.

Asked how soon public hearings would start, Mbhele said: "It would be up to the commission to determine their time frames, but they do have the deadline of the end of February to complete and deliver their report, so as soon as possible would be our preference."

The Social Justice Coalition NGO said it was "delighted" at the court's decision as well.

"This means that at least there is something that is going to be done about the state of crime in Khayelitsha, so we are very happy," said SJC spokesperson Axolile Notywala.

Notywala said the community deserved to know what the underlying problems were that led to scores of vigilante killings in the area last year.

"We are sad that it had to be dragged into court because this is taxpayers' money that was wasted here," said Notywala.

He said the commission would have completed much of its work had the court challenge not occurred.

Mthethwa last year argued that Zille's decision to appoint the commission would have an impact on the independence of the SA Police Service.

Mthethwa's legal team also said the commission was established to make media headlines.