Jaguar Land Rover is to build a range of electric cars in the UK, safeguarding thousands of jobs and delivering a huge boost to the industry after a series of setbacks in recent months.

Investment will be made at the firm’s factory in Castle Bromwich, West Midlands, with other sites and supply companies benefitting from the development.

An all-electric version of the Jaguar XJ sedan replacement will be the first new battery-powered vehicle, followed by others.

The Castle Bromwich plant will close for six weeks so new equipment can be installed.

The investment follows an agreement for employees to work a four-day week as part of restructuring plans.

The plant, near the M6 in Birmingham, employs around 2,500 workers.

Batteries for the new electric XJ will be made in Hams Hall, Warwickshire, while the electric motors will be manufactured at JLR’s engine plant near Wolverhampton.

Jaguar Land Rover business update
A line-up of Jaguar Land Rover’s XJ cars (Nick Dimbleby/Jaguar Land Rover/PA)

Dr Ralph Speth, chief executive of JLR, said: “The future of mobility is electric and as a visionary British company, we are committed to making our next generation of zero-emission vehicles in the UK.”

The Government and union leaders welcomed the news as a “fantastic boost” to the car industry.

JLR said its announcement was the next significant step in delivering on the company’s commitment to offer customers electrified options for all new Jaguar and Land Rover models from 2020.

Jaguar Land Rover business update
A worker at JLR’s Castle Bromwich plant (Jaguar Land Rover/PA)

The XJ has been in production for 50 years and has been popular with business leaders, celebrities, politicians and royalty and has been exported to more than 120 countries.

The news was confirmed to workers at Castle Bromwich as production of the current XJ came to an end on Friday.

Dr Speth said: “We are co-locating our electric vehicle manufacture, electronic drive units and battery assembly to create a powerhouse of electrification in the Midlands.”

JLR said the new battery assembly centre at Hams Hall, operational in 2020, will be the most innovative and technologically advanced in the UK with a capacity of 150,000 units.

Castle Bromwich will become the UK’s first premium electrified vehicle plant, said the company, adding that work will start later this month to install new facilities and technologies.

Business Secretary Greg Clark said: “Today’s announcement is a vote of confidence in the UK automotive industry – protecting thousands of skilled jobs. It reflects our determination for the UK to be at the forefront of the development and manufacturing of the next generation of electric vehicles.

Jaguar Land Rover business update
New cars at the Jaguar Land Rover plant in Castle Bromwich (Jaguar Land Rover/PA)

“The Government has made a big strategic choice in its industrial strategy to be a leading force in the move to electric vehicles, investing and building on our research strengths in the Faraday Challenge and the Battery Industrialisation Centre. We are now perfectly placed to host a gigafactory and we are determined to realise that ambition.

“JLR’s announcement recognises the strength of the excellent workforce at Castle Bromwich and acknowledges the efforts of many parties, including the Government and the mayor, Andy Street, to invest and build a sustainable future in the region for advanced manufacturing, safeguarding jobs and skills.”

Unite union assistant general secretary Steve Turner said: “Today’s trailblazing announcement is testament to the skill and hard work of Unite members and shop stewards.

“Not only is it a fantastic boost to the UK car industry, but it ensures that Jaguar Land Rover’s Castle Bromwich site remains a powerhouse of the regional economy, providing a living for thousands of workers and supporting many more in the supply chain.

Jaguar Land Rover business update
Jaguar Land Rover workers in Castle Bromwich (Jaguar Land Rover/PA)

“This is a proud day for our members and Jaguar Land Rover. The Government and Theresa May’s replacement as prime minister must make sure it is not the last for the UK’s world-beating car workers and their families.”

Rebecca Long Bailey, shadow business secretary, said: “This is welcome news for the workers at JLR and a ray of hope for the automotive sector at this difficult time.

“However, the fact remains that overall investment in UK automotive is plummeting and global players are choosing to invest in electrification elsewhere.

“The Government must urgently work with industry and trade unions to ensure this investment from JLR is a model to other manufacturers and not an exception.”

Mike Hawes, chief executive of the Society of Motor Manufacturers and Traders, said: “Today’s news is a huge boost for the UK motor industry and reaffirms Britain’s potential to become a global leader in zero-emission technologies.

“To realise this, however, we need the right conditions to encourage more manufacturers to invest, innovate and sell competitively, including massive infrastructure investment and long-term support and incentives for consumers.

“When it comes to automotive supply, distance matters and securing significant giga-scale battery production here in the UK will be essential to future-proof this sector.”