A bed that senses an earthquake or other danger and closes to protect sleepers. It protects people from accidents caused by earthquakes.