The bed consists of a frame, mattress platform and removable bed guard assembly. The bed guard assembly includes a main support which at the lower end has a mounting for connection to the bed, a guard permanently fixed to the main support and a locking mechanism for fixing the main support in relation to the bed. The locking mechanism is located inside the guard assembly and includes a sleeve and blocking element which moves between two positions. In one position the blocking element engages in the sleeve, and in the second position the blocking element is released from the sleeve, where in one of these positions it allows the movement of the main support in relation to the sleeve, and in the second of these positions it prevents the movement of the main support in relation to the sleeve, the movement of the blocking element of the locking mechanism is controlled by the actuator.