Analytical expressions are obtained for the energy of a quasi-two-dimensional electron-hole liquid (EHL) and the threshold value of the barrier height for electrons, above which formation of the direct EHL is impossible. It is shown that the state with a quasi-two-dimensional EHL can be energetically favorable in semiconductors with the anisotropy of masses and (or) a large number of equivalent valleys. A comparison of the calculation results with the experimental data for the Si/SiGe/Si structure is made.