NOVELTY - Preparation of hydrocarbons, comprises: catalytically converting carbon monoxide and hydrogen to oxygenate mixture (comprising methanol, dimethyl ether and/or higher alcohols) in presence of inert gases and methane; withdrawing entire oxygenate mixture and transferring to catalytic oxygenate conversion step; catalytically converting oxygenate mixture to obtain liquid phase (5) (hydrocarbons) and gaseous phase (inert gases and methane) (4); transferring gaseous phase to power generation unit for generation of electrical energy and/or heat; and transferring liquid phase for further processing.    USE - The process is useful for: the preparation of hydrocarbons (claimed), which is useful as gasoline compounds; and producing power for instance electrical power.    ADVANTAGE - The process: provides the co-production of power utilizing the heating value provided by the gaseous phase (tail gas) resulting from the gasoline synthesis; is simple; can accept a relatively high content of inert gases in the synthesis gas and even at moderate pressure provide a significant conversion of synthesis gas into gasoline; and recovers the carbon dioxide present in the synthesis gas feed stream and the carbon dioxide produced in the synthesis step in downstream of the gasoline synthesis at essentially the synthesis pressure prevailing in the oxygenate synthesis step.    DETAILED DESCRIPTION - Preparation of hydrocarbons, from a synthesis gas (1) (comprising carbon monoxide, hydrogen and more than 20 mole% of inert gases and methane) obtained from a solid fuel, comprises: (a) catalytically converting carbon monoxide and hydrogen comprised in the synthesis gas to an oxygenate mixture comprising methanol, dimethyl ether and/or higher alcohols in the presence of the inert gases and methane; (b) withdrawing from step (a) the entire oxygenate mixture comprising methanol, dimethyl ether and/or higher alcohols, including inerts and methane and transferring the entire oxygenate mixture including inert gases and methane to a catalytic oxygenate conversion step; (c) catalytically converting methanol, dimethyl ether and/or higher alcohols comprised in the oxygenate mixture to obtain a liquid phase (5) comprising hydrocarbons and a gaseous phase (4) comprising inert gases and methane; (d) transferring the gaseous phase comprising inert gases and methane to a power generation unit for generation of electrical energy and/or heat; and (e) transferring the liquid phase comprising hydrocarbons for further processing to gasoline.    DESCRIPTION OF DRAWING(S) - The figure shows the flow diagram of the process.    Synthesis gas (1)    Methanol and 1,2-dimethoxyethane containing mixture (2)    Stream of 2-10C hydrocarbons and water (3)    Gaseous phase (4)    Liquid phase (5)