An agricultural working machine including at least one optical sensor apparatus, an image processing system, a work lighting system that includes one or more light sources, and a regulation and control device configured to control the work lighting system is disclosed. The image processing system, using the optical sensor apparatus, detects the occurrence of one or more obstacles in an obstacle region in the forefield of the agricultural working machine. The regulation and control device generates control signals that control orientation the one or more light sources in order to orient light beam(s) generated by the one or more lights sources toward the obstacle region.