AbstractSurface data assimilation (DA) plays a key role in the initialisation of soil variables in coupled surface–atmosphere numerical weather prediction (NWP) models. Météo‐France, as many other NWP centres, uses an operational surface DA method based on an optimal interpolation (OI), implemented more than 30 years ago. The current surface DA system implemented at Météo‐France in the operational limited‐area AROME‐France model operates in two steps. First, a two‐dimensional OI method analyses the diagnostic screen‐level parameters, which are then used to initialise the prognostic soil variables according to a one‐dimensional OI method. This article presents the implementation and the results of a new two‐dimensional ensemble‐based variational (2DEnVar) system, using the object‐oriented prediction system framework, for the diagnostic screen‐level variable analyses (2‐m temperature and 2‐m relative humidity) within the AROME‐France model. These analysed variables are then used to initialise the soil temperature and soil moisture of the first and second soil layers. A two‐dimensional variational system is initially implemented and compared with an equivalent system that uses an OI surface analysis. The comparison of 2‐m temperature increments shows that the two systems behave in a similar way. From this two‐dimensional variational approach, a 2DEnVar scheme is developed and compared with the OI screen‐level analysis used operationally (reference system). The results are encouraging even though a degradation in forecast quality is noticed at short ranges for 2‐m temperature and 2‐m relative humidity. This is mainly due to a low spread near the surface in the ensemble‐based data assimilation that is used to compute background‐error covariances in 2DEnVar. Sensitivity tests have been performed to improve the initial version of the 2DEnVar scheme. A positive and significant impact is noticed when a multiplicative inflation is applied to the background perturbations coming from the ensemble‐based data assimilation for the computation of 2‐m temperature and 2‐m relative humidity background‐error covariances. Finally, when comparing the inflated 2DEnVar system with the reference, the two systems behave similarly. This suggests that the 2DEnVar scheme, based on ensemble statistics, is capable of properly reconstructing background‐error structures derived from the empirical correlations described in OI.