In Bedwars, each team defends its own bed while trying to break the other teams’ beds. While your bed stands, your team respawns after being defeated; once your bed is broken, the next defeat is final.
Be the last team standing. Break every enemy bed and defeat the remaining players — a team with no bed and no players left is eliminated.