The invention relates to the technical field of furniture special for children. The invention further discloses a child bed anti-falling device based on light sensation control. The device comprises ashell and a partition plate, an ejector rod is movably connected into the shell, a sliding rail is fixedly connected into the shell, a first spring is movably connected into the sliding rail, a sliding rod is movably connected to the exterior of the first spring, a buckle is movably connected to the exterior of the sliding rod, and a gear is movably connected into the shell; under the interactionof a shell, a partition plate, an ejector rod, a sliding rail, a first spring, a sliding rod, a buckle, a gear, a first rotating wheel and a crawler belt, by means of the structure, the partition plate can be triggered to move when a child rolls to the area beside the bed during sleeping, the possibility that the child falls off when the child is beside the bed can be avoided, an obtuse angle canbe formed between the partition plate and the shell, the possibility that the child falls off from the bed can be effectively prevented, and the child bed is more suitable for being used under the actual condition.