Three inch deck screws to the studs. The rails can take 100 pounds of weight as well, as well as using a lot of brackets.