An electric bed, comprising: a bed body; a plurality of bed planks, wherein, at least one head bed plank close to the head of the bed is rotatable; a driver, one end of the driver hinged to the head bed plank and another end thereof hinged to the bed body to drive the head bed plank to rotate; a monitoring module comprising a pressure sensor for determining a user's snoring according to a regular pressure change generated when the user is snoring, the driving module electrically connected to the monitoring module and the driver, when the monitoring module detects that the user is snoring, the driving module controls the driver to drive the head bed plank to rotate to an anti-snoring position; when the snoring weakens or stops, the driving module drives the head bed plank to restore to an initial position; a wireless communication module electrically connected to the driving module, wherein the wireless communication module is wirelessly connected to an intelligent terminal, the user set an anti-snoring program through the intelligent terminal and the intelligent terminal transmits the anti-snoring program to the wireless communication module; and the wireless communication module sends an application situation of the anti-snoring function to the intelligent terminal, wherein the electric bed further comprises a sensor electrically connected to the driving module, wherein, when the sensor monitors that the user is on the bed, the monitoring module is activated; and when the sensor monitors that the user is not on the bed, the monitoring module is not activated; and wherein the sensor is a thin film pressure sensor provided on the plurality of bed planks. a bed body; a plurality of bed planks, wherein, at least one head bed plank close to the head of the bed is rotatable; a driver, one end of the driver hinged to the head bed plank and another end thereof hinged to the bed body to drive the head bed plank to rotate; a monitoring module comprising a pressure sensor for determining a user's snoring according to a regular pressure change generated when the user is snoring, the driving module electrically connected to the monitoring module and the driver, when the monitoring module detects that the user is snoring, the driving module controls the driver to drive the head bed plank to rotate to an anti-snoring position; when the snoring weakens or stops, the driving module drives the head bed plank to restore to an initial position; a wireless communication module electrically connected to the driving module, wherein the wireless communication module is wirelessly connected to an intelligent terminal, the user set an anti-snoring program through the intelligent terminal and the intelligent terminal transmits the anti-snoring program to the wireless communication module; and the wireless communication module sends an application situation of the anti-snoring function to the intelligent terminal, wherein the electric bed further comprises a sensor electrically connected to the driving module, wherein, when the sensor monitors that the user is on the bed, the monitoring module is activated; and when the sensor monitors that the user is not on the bed, the monitoring module is not activated; and wherein the sensor is a thin film pressure sensor provided on the plurality of bed planks.