The invention discloses a pressure ulcer prevention medical bed. In order to accurately judge the lying posture, the lying position and the like of a patient, a first sensor and a second sensor are adopted, and the first sensor and the second sensor are used for sensing the magnitude of stress transmitted from the body of the patient when a working rod works leftwards, rightwards, upwards and downwards. Along with the movement of the working rod, the bedspread wraps the patient, a series of actions such as lying flat, lying left, lying flat, lying right, lying flat and hanging lying are automatically carried out according to a set program and a set cycle period, and the pillow is always kept in a state of resting on the head of the patient. In addition, the massage mechanism can massage the back of the patient, a cold and hot air blower is arranged below the bed cover to blow comfortable air to the patient, and the patient with limb movement inconvenience can be automatically lifted tothe bed and can also be lifted to the ground under the condition that no nurse exists. The medical bed can also be used as a rocking bed for children, and adults can be used as a hammock. And the curtain type baby diapers are rolled on the roller shutter barrel, so that the baby diapers can be replaced in a full-automatic manner.