The world’s second-largest chipmaker, South Korea’s SK hynix Inc, announced a record 10.3 trillion won ($9 billion) deal on Tuesday to buy Intel’s flash memory chip operation as it seeks to bolster its position against rival behemoth Samsung Electronics.

SK hynix is already the world number two maker of DRAM chips, used in computers and servers, but has lagged in the market for flash memory NAND chips in everyday devices such as smartphones and USB storage drives, as well as industrial and medical equipment.

In a regulatory filing, SK hynix said it will acquire Intel’s “entire NAND business division excluding the Optane division”, with Intel’s factory in Dalian, China, included in the deal.

It is the largest-ever acquisition by a South Korean company, ahead of Samsung Electronics’ $8 billion purchase of US audio and car parts maker Harman International in 2016.

SK hynix CEO Seok-Hee Lee said in a statement it would give his firm a NAND flash market position “comparable with what we achieved in DRAM”.

Analysts said it would also boost its ability to compete with Samsung Electronics, the market leader in both the NAND and DRAM sectors.

The pair are engaged in ferocious competition around the world, supplying chips to customers from American giants such as Apple and Dell to Chinese companies, and demand has boosted their profits in recent years.

SK hynix ranked fourth by global NAND sales in the second quarter this year, according to market researcher Trendforce. Intel was sixth.

Their combination will see SK hynix leapfrog Japan’s Kioxia – formerly Toshiba – and Western Digital of the US into second place with a NAND market share of more than 23 per cent.

Korea Semiconductor Industry Association vice-president Ahn Ki-hyun said: “With the deal, the company has firmly cemented its second-largest position in the global semiconductor industry.

“In the long run, the deal paves a way for it to become more competitive against Samsung,” he added.

The Samsung Electronics and SK hynix headquarters are both south of Seoul and less than 50km apart, from where they dominate the global branded memory chip market.

Between them they accounted for around 60 per cent of total sales in the second quarter of this year, according to the Trendforce figures.

The South Korean firms have achieved their commanding position by adopting a “Super Gap” strategy, said Howard Lee, managing director of investment banking advisors BDA Partners – investing vast sums unusually early “to build a strong entry barrier that followers cannot overcome”.

Samsung Electronics, he told AFP, “usually invests around $30bn a year, widening the gap in technology with competitors”.

The approach was only possible because of the companies’ family-controlled structures, he added.

Samsung Electronics is the flagship subsidiary of the Samsung group, by far the largest of the family-controlled conglomerates known as chaebol that dominate business in the world’s 12th-largest economy.

For its part SK hynix is part of the SK Group, the third-largest chaebol, while the original Hynix was owned by the Hyundai group before a $2.2 billion merger that Lee advised on.

The “strong and stable ownership of Korean conglomerates” enabled them to adopt far-sighted, decades-long plans such as the “Super Gap”, he said.

“As the huge investment could harm profitability and shareholder value in a short term,” he explained, such large and risky moves would be difficult for more “democratic” competitors with hired CEOs and shorter-term horizons.

SK hynix is the second most valuable company listed on Seoul’s Kospi stock market with a market capitalisation of 62 trillion won, behind only Samsung Electronics.

But SK hynix shares closed down 1.73 per cent on Tuesday.