It's after the resignation of Edouard Philippe who has been in the post for three years.
Mr Castex, 55, is relatively unknown in France, although he is a senior civil servant.
The new Prime Minister has been a key player in the government's response to the Covid-19 pandemic.


All 7 on board killed after air ambulance crashes in India
US judge permanently blocks release of report on Trump documents case
Former UK ambassador Mandelson released on bail after Epstein revelations
Russian attack on Ukraine's Odesa region killed two people, injured three
Duterte was 'pivotal' in murder of thousands, ICC prosecutors say
