(AP) -- Taiwan electronics manufacturer Hon Hai Precision Industry Co. is taking a 10 percent stake in struggling Japanese electronics company Sharp Corp. for about $806 million.

Hon Hai, owner of the Foxconn factories in China, is a key producer of iPads and iPhones for Apple Inc., the world's most valuable company.

Sharp and Hon Hai will form an alliance in liquid crystal displays and other electronics sectors to cut costs. Sharp makes flat-screen TVs and LCD displays for TVs, game consoles, tablet computers and smartphones, appliances and other products.

Hon Hai will buy 66.9 billion yen ($806 million) worth of newly issued shares from Sharp.

Like other Japanese electronics makers, Sharp has been hurt by falling prices, competition from other Asian companies and a stronger yen. The tsunami disaster in 2011 and flooding in Thailand also have disrupted supply chains.

In February, Sharp said it expected to lose 290 billion yen for the fiscal year ending in March.

Hon Hai will also buy up to 50 percent of the LCD displays made at Sharp's Sakai plant in Japan. As part of the deal, Sharp will sell a 46.5 percent stake in that plant to Hon Hai chief Terry Gou and other investors. Japanese rival Sony Corp. will keep its 7 percent stake. Sharp's share of the plant will drop to 46.5 percent from 93 percent.