Ancient locks were primarily made from wood and used simple mechanisms, such as pins or bolts, that slid into place. Over time, metal locks with more complex mechanisms, like the pin tumbler system, were developed. Modern locks, on the other hand, can include electronic systems, biometrics, and advanced materials, offering higher security levels.