In the case of a method for hitching a trailer (2) to a motor vehicle (1), in particular a semitrailer to a semitrailer towing machine, an image sensor (5) is provided which is arranged in a hitching region (6) in such a manner that image data of the hitching region (6) are recorded. During the approach of the motor vehicle (1) to the trailer (2), stored model data of the hitching region (6) of the trailer (2) are segmented in the image data recorded by the image sensor (5) and are in each case placed in the correct position in the image data. A target zone (9) for the hitching is determined therefrom. The arrangement of the target zone (9) in the image data is used as a measurement for a steering operation of the motor vehicle (1) during hitching.