Method for producing a housing enclosing a control unit by mechanically shaping a starting material, the control unit being set up in particular for controlling a motor vehicle headlamp, characterized by the following steps: a) providing a substantially strip-shaped, preferably metallic, starting material, which has an upper side and a lower side, the starting material being subdivided into at least three adjoining subregions (4, 5, 6), which are separated by folding axes (11, 13); b) forming cooling fins on a first sub-region of the starting material; c) forming a housing bottom at a second partial region of the starting material, which preferably corresponds to a central region of the starting material, the starting material having a first folding axis between the first partial region and the second partial region; d) forming a housing cover at a third partial region of the starting material, the starting material having a second folding axis between the second partial region and the third partial region; e) carrying out a folding process in which the underside of the first part region of the starting material is folded about the first folding axis onto the underside of the second part region of the starting material, so that, in the folded state, the first part region and the second part region are oriented essentially congruently one above the other, the underside of the first part region and the underside of the second part region being in direct contact with one another, preferably at least in sections over the entire surface; f) attaching the control unit, which is set up in particular to control a motor vehicle headlight, to the upper side of the second part region of the starting material; g) carrying out a folding operation in which the upper side of the third part region of the starting material is folded about the second folding axis onto the upper side of the second part region of the starting material, or carrying out a folding process in which the underside of the third part region of the starting material is folded about the second folding axis onto the upper side of the second part region of the starting material, so that, in the folded state, the second partial region and the third partial region are oriented essentially congruently one above the other, the housing base formed in step c) and the housing cover formed in step d) being designed in such a way that, in the state folded one above the other, a housing chamber enclosing the control device is formed between the housing base and the housing cover; h) fixing the first part region to the second part region and/or fixing the second part region to the third part region with at least one fixing means, so that the first part region is connected to the second part region and/or the second part region is connected to the third part region by the interaction of the at least one fixing means. a) providing a substantially strip-shaped, preferably metallic, starting material, which has an upper side and a lower side, the starting material being subdivided into at least three adjoining subregions (4, 5, 6), which are separated by folding axes (11, 13); b) forming cooling fins on a first sub-region of the starting material; c) forming a housing bottom at a second partial region of the starting material, which preferably corresponds to a central region of the starting material, the starting material having a first folding axis between the first partial region and the second partial region; d) forming a housing cover at a third partial region of the starting material, the starting material having a second folding axis between the second partial region and the third partial region; e) carrying out a folding process in which the underside of the first part region of the starting material is folded about the first folding axis onto the underside of the second part region of the starting material, so that, in the folded state, the first part region and the second part region are oriented essentially congruently one above the other, the underside of the first part region and the underside of the second part region being in direct contact with one another, preferably at least in sections over the entire surface; f) attaching the control unit, which is set up in particular to control a motor vehicle headlight, to the upper side of the second part region of the starting material; g) carrying out a folding operation in which the upper side of the third part region of the starting material is folded about the second folding axis onto the upper side of the second part region of the starting material, or carrying out a folding process in which the underside of the third part region of the starting material is folded about the second folding axis onto the upper side of the second part region of the starting material, so that, in the folded state, the second partial region and the third partial region are oriented essentially congruently one above the other, the housing base formed in step c) and the housing cover formed in step d) being designed in such a way that, in the state folded one above the other, a housing chamber enclosing the control device is formed between the housing base and the housing cover; h) fixing the first part region to the second part region and/or fixing the second part region to the third part region with at least one fixing means, so that the first part region is connected to the second part region and/or the second part region is connected to the third part region by the interaction of the at least one fixing means.