Match the fixing to the base material: hardened nail-in anchors for concrete, coarse-thread screws for timber.
The length should engage at least two thirds into the base.