UPDATE 1-Government raises Kenya Airways stake in debt swap deal

(Adds details, background)

NAIROBI, Nov 13 (Reuters) - The Kenyan government and domestic lenders have agreed to convert more than $400 million of Kenya Airways' debt into equity, increasing the state's stake in the airline to almost 50 percent.

The government has given Kenya Airways more than $200 million of Kenyan shilling and dollar-dominated loans, the airline said in a statement on Monday to the Nairobi stock exchange.

The agreement will increase the government's stake from 29.8 percent to 48.9 percent. Air France-KLM has a 26.7 percent stake in the airline.

Kenya Airways announced a nearly $700 million restructuring last year and the airline has since reduced its fleet size and workforce and cut unprofitable routes. The company is trying to return to profit after it posted a loss in 2016 of more than $250 million.

The company last month announced it was in talks with the government as it sought help in coping with competition from foreign carriers operating flights to its Nairobi hub. (Reporting by Maggie Fick; Editing by Louise Heavens and Mark Potter)