An integrated process for the conversion of heavy hydrocarbons to a light distillate and/or mid-distillate, comprising the steps of: a) Hydrocracking of a feedstock of heavy hydrocarbons with the boiling point in the range between 260°C and 590°C in a hydrocracking unit; b) Distillation of the products of the hydrocracking unit from step a) to produce a first residue of heavy hydrocarbons; c) Catalytic cracking of a feedstock of heavy hydrocarbons with the boiling point in the range between 240°C and 620°C in a catalytic cracking unit; d) Distillation of the products of the catalytic cracking unit from step c) to produce a second residue of heavy hydrocarbons; e) Hydroconversion of the second residue of heavy hydrocarbons from step d) with boiling point above 370°C with the addition of one or combination of heavy hydrocarbons such as crude oil, atmospheric vacuum residues, asphaltene, heavy coking and visbreaking gas oil, natural bitumen and sand oils in a hydroconversion unit, wherein the boiling point of the heaviest products is at most 620°C, wherein the hydrogen, feed, and the catalytic complex are heated separately, then the feed and the catalytic complex are mixed and heated again and then the mixture of feed, catalytic complex and hydrogen are heated and entered into a reactor, wherein heavy residue feed it cracked and hydrogenated, and wherein hydrogenation and cracking occur simultaneously; f) Recycling the heavy hydroconversion products (31; 3; 16) of the hydroconversion unit from step e) with boiling point above 370°C to the hydrocracking unit in step a) or both to the hydrocracking unit and to the catalytic cracking unit in step c); and g) Feeding at least a portion of the first residue of heavy hydrocarbons from step b) to the hydroconversion unit in step e). a) Hydrocracking of a feedstock of heavy hydrocarbons with the boiling point in the range between 260°C and 590°C in a hydrocracking unit; b) Distillation of the products of the hydrocracking unit from step a) to produce a first residue of heavy hydrocarbons; c) Catalytic cracking of a feedstock of heavy hydrocarbons with the boiling point in the range between 240°C and 620°C in a catalytic cracking unit; d) Distillation of the products of the catalytic cracking unit from step c) to produce a second residue of heavy hydrocarbons; e) Hydroconversion of the second residue of heavy hydrocarbons from step d) with boiling point above 370°C with the addition of one or combination of heavy hydrocarbons such as crude oil, atmospheric vacuum residues, asphaltene, heavy coking and visbreaking gas oil, natural bitumen and sand oils in a hydroconversion unit, wherein the boiling point of the heaviest products is at most 620°C, wherein the hydrogen, feed, and the catalytic complex are heated separately, then the feed and the catalytic complex are mixed and heated again and then the mixture of feed, catalytic complex and hydrogen are heated and entered into a reactor, wherein heavy residue feed it cracked and hydrogenated, and wherein hydrogenation and cracking occur simultaneously; f) Recycling the heavy hydroconversion products (31; 3; 16) of the hydroconversion unit from step e) with boiling point above 370°C to the hydrocracking unit in step a) or both to the hydrocracking unit and to the catalytic cracking unit in step c); and g) Feeding at least a portion of the first residue of heavy hydrocarbons from step b) to the hydroconversion unit in step e).