ALGIERS, Aug 17 (Reuters) - Algerian President Abdelaziz Bouteflika nominated three new cabinet ministers on Thursday, two days after bringing back veteran loyalist Ahmed Ouyahia for a fourth term as prime minister.

The reshuffle included the appointment of Youcef Yousfi as minister for industry and mines, Mohamed Benmeradi as trade minister, and Abdelwahid Temmar as housing minister, according to a presidency statement.

Energy Minister Mustapha Guitouni and Finance Minister Abderrahamane Rouia remain in place.

The changes are at a delicate time for Algeria, which is trying to adjust to a sharp fall in energy earnings that have put expansive public spending programmes at risk.

State revenues dropped from $60 billion in 2014 to $27.5 billion in 2016, pushing the government to freeze several projects, stop hiring some civil servants, and reduce imports.

Ouyahia's predecessor, Abdelmadjid Tebboune, was dismissed after less than three months in the job. urn:newsml:reuters.com:*:nL8N1L142O

Ouyahia is seen as a dependable and experienced operator now tasked with managing sensitive spending cuts and reducing Algeria's bloated import bill. He had previously been serving as Bouteflika's chief of staff.

The 80-year-old president has rarely been seen in public since suffering a stroke in 2013.

New Industry Minister Yousfi is a specialist in the hydrocarbons industry who has previously served as energy minister. His most recent post was as an energy advisor to the presidency.

(Reporting By Lamine Chikhi; Editing by Aidan Lewis and Alister Doyle) ((lamine.chikhi@thomsonreuters.com;))