Image copyright Carillion

Construction giant Carillion has gone into liquidation, threatening thousands of jobs.

The move came after talks between the firm, its lenders and the government failed to reach a deal to save the UK's second biggest construction company.

Carillion ran into trouble after losing money on big contracts and running up huge debts of around £1.5bn.

Its failure means the government will have to provide funding to maintain the public services run by Carillion.

Media playback is unsupported on your device Media caption David Lidington says wages will be paid to staff working on public sector contracts

"All employees should keep coming to work, you will continue to get paid. Staff that are engaged on public sector contracts still have important work to do," said government minister David Lidington.

Carillion is involved in major projects such as the HS2 high-speed rail line, as well as managing schools and prisons.

It is the second biggest supplier of maintenance services to Network Rail, and it maintains 50,000 homes for the Ministry of Defence.

Defence Secretary Gavin Williamson told MPs there would be a meeting of the government's Cobra emergency committee on Monday to discuss the situation.

Carillion chairman Philip Green said it was a "very sad day" for the company's workers, suppliers and customers.

The company has 43,000 staff worldwide - 20,000 in the UK.

Media playback is unsupported on your device Media caption Labour asks why the government did not act when profit warnings were issued

There are also thousands of small firms that carry out work on Carillion's behalf - many of those have contacted the BBC with concerns about whether they will be paid.

One company, which provided services for Carillion's prisons contract, told the BBC that it might fail if it is not paid the £80,000 owed to it.

A worker on the Midland Metropolitan Hospital, who wanted to only be identified as Philip, told the BBC: "Everyone on the site got told: 'That's it, go home.' My company said, 'You've been laid off.'

"They've literally locked the gate. They've told us we can get our personal tools off the site if they're small, but that's it."

Analysis: Simon Jack, BBC business editor

Damned if they did, damned if they didn't?

The government refused to insure Carillion's debts, so the banks pulled the plug. If it had offered guarantees to big banks on behalf of a private company it might have been accused of nationalising losses while privatising profits.

The whole point of having private companies do public work is that they shoulder some of the risk. The truth is the government has been helping out Carillion for a while. Awarding it contracts when it knew it was in trouble raised eyebrows last year.

The government constructed the HS2 contracts so that Carillion's joint venture partners would take on the work if the company went bust - meanwhile it hoped the new contracts would be enough to make Carillion's lenders feel reassured.

Industry sources tell me that if the company hadn't been awarded new government work it would have been curtains for Carillion months ago.

What happens next depends on the actions of a court-appointed official receiver. With the help of a team of experts from accountants PwC, the receiver will review Carillion's business - a process which could take months.

The government has already said it is supporting public services and other firms are likely to take on some of Carillion's other contracts and staff.

Pension impact

Thousands of current and former staff have money in Carillion pension funds, which have a total deficit of almost £600m.

Those funds will now be managed by the Pension Protection Fund (PPF).

The PPF said it was aware news of the liquidation would "raise serious concerns for all people involved".

"We want to reassure members of Carillion's defined benefit pension schemes that their benefits are protected by the PPF."

Shadow business secretary Rebecca Long-Bailey said Labour wanted a full investigation into the government's dealings with Carillion: "This company issued three profit warnings in the last six months, yet despite those profit warnings the government continued to grant contracts to this company."

Carillion might not be a household name, but over the years it has absorbed better-known businesses, including Mowlem and Alfred McAlpine.

It also has a big international business, including projects in Qatar and Canada.

In addition it is a big supplier of construction services to the Canadian government.

Its biggest problems were cost overruns on three UK public sector construction projects:

The £350m Midland Metropolitan Hospital in Sandwell: opening delayed to 2019 due to construction problems

The £335m Royal Liverpool Hospital: completion date repeatedly pushed back amid reports of cracks in the building

The £745m Aberdeen bypass: delayed because of slow progress in completing initial earthworks

'Public service'

Bernard Jenkin, the Conservative chairman of the House of Commons Public Administration Committee, said Carillion's collapse "really shakes public confidence in the ability of the private sector to deliver public services and infrastructure".

He said there needed to be a change of "mindset" at companies that do a lot of work for the taxpayer.

"You've got to treat yourself much more as a branch of the public service, not as a private company just there to enrich the shareholders and the directors," he said.

"Ironically, Whitehall tends to do contracts with companies that it always does contracts with, because that's the safe thing to do - that's the perception. A great many small and medium-sized companies feel excluded."

Image copyright HS2/Grimshaw Image caption Carillion is part of a consortium working on the HS2 rail line

Mick Cash, the general secretary of the Rail, Maritime and Transport (RMT) union, said: "This is disastrous news for the workforce and disastrous news for transport and public services in Britain.

Rehana Azam, national officer of the GMB union, said: "What's happening with Carillion yet again shows the perils of allowing privatisation to run rampant in our schools, our hospitals and our prisons."