A method for producing olefins and gasoline from renewable sources, the method comprising: providing CO 2 and hydrogen as feed to produce methanol in a methanol reactor, wherein the hydrogen is obtained from a water electrolyzer; reacting the methanol in a Methanol-to-Olefin reactor, preferably an isothermal MTO reactor, to produce a MTO reaction effluent comprising olefinic and non-olefinic hydrocarbons and water, wherein the water in the MTO reaction effluent is used at least partially as feed for the water electrolyzer, wherein non-converted CO 2 from the methanol reactor is directed at least partially into the MTO reactor; treating the MTO reaction effluent in a plurality of separation columns to separate the hydrocarbons, wherein the plurality of separation columns comprises a Deethanizer column, a Depropanizer column, a Debutanizer column, a C 2 splitter column, and a C 3 splitter column, wherein the separation of the hydrocarbons from the MTO reaction effluent comprises (i) separating C 2 hydrocarbons from C 3+ hydrocarbons at the Deethanizer column, (ii) separating ethylene from the C 2 hydrocarbons at the C 2 splitter column, (iii) separating C 3 hydrocarbons from C 4+ hydrocarbons at the Depropanizer column, (iv) separating propylene from the C 3 hydrocarbons at the C 3 splitter column, and (v) separating C 4 hydrocarbons as a Debutanizer overhead fraction at the Debutanizer column, wherein a fraction of the separated hydrocarbons settles at a bottom of the Debutanizer column as a Debutanizer bottom fraction after separation, wherein the Debutanizer bottom fraction comprises C 5+ hydrocarbons; hydrogenating at least a part of the Debutanizer bottom fraction with the hydrogen obtained from the water electrolyzer in a hydrogenation reactor to obtain a hydrogenated Debutanizer bottom fraction; routing out at least a part of the hydrogenated Debutanizer bottom fraction as gasoline product, or separating Liquefied Petroleum Gas from the hydrogenated Debutanizer bottom fraction in a gasoline stabilizer column, routing out a LPG product as a gasoline stabilizer column overhead fraction, and routing out a stabilized gasoline product as a gasoline stabilizer column bottom fraction; and routing out an olefin product, comprising propylene and optionally at least a part of the ethylene. providing CO 2 and hydrogen as feed to produce methanol in a methanol reactor, wherein the hydrogen is obtained from a water electrolyzer; reacting the methanol in a Methanol-to-Olefin reactor, preferably an isothermal MTO reactor, to produce a MTO reaction effluent comprising olefinic and non-olefinic hydrocarbons and water, wherein the water in the MTO reaction effluent is used at least partially as feed for the water electrolyzer, wherein non-converted CO 2 from the methanol reactor is directed at least partially into the MTO reactor; treating the MTO reaction effluent in a plurality of separation columns to separate the hydrocarbons, wherein the plurality of separation columns comprises a Deethanizer column, a Depropanizer column, a Debutanizer column, a C 2 splitter column, and a C 3 splitter column, wherein the separation of the hydrocarbons from the MTO reaction effluent comprises (i) separating C 2 hydrocarbons from C 3+ hydrocarbons at the Deethanizer column, (ii) separating ethylene from the C 2 hydrocarbons at the C 2 splitter column, (iii) separating C 3 hydrocarbons from C 4+ hydrocarbons at the Depropanizer column, (iv) separating propylene from the C 3 hydrocarbons at the C 3 splitter column, and (v) separating C 4 hydrocarbons as a Debutanizer overhead fraction at the Debutanizer column, wherein a fraction of the separated hydrocarbons settles at a bottom of the Debutanizer column as a Debutanizer bottom fraction after separation, wherein the Debutanizer bottom fraction comprises C 5+ hydrocarbons; hydrogenating at least a part of the Debutanizer bottom fraction with the hydrogen obtained from the water electrolyzer in a hydrogenation reactor to obtain a hydrogenated Debutanizer bottom fraction; routing out at least a part of the hydrogenated Debutanizer bottom fraction as gasoline product, or separating Liquefied Petroleum Gas from the hydrogenated Debutanizer bottom fraction in a gasoline stabilizer column, routing out a LPG product as a gasoline stabilizer column overhead fraction, and routing out a stabilized gasoline product as a gasoline stabilizer column bottom fraction; and routing out an olefin product, comprising propylene and optionally at least a part of the ethylene.