They're hinged onto the base. Overall there are 24 hinges in the finished bed, which is a bit excessive. And, since each hinge attaches with 8 screws, that's 192 screws just to hold the hinges on! Plus a whole lot more screws holding all the battens together, of course.