This is a very complex and time consuming skill and it involves making mechanical locks, usually out of metal. You can also repair locks with this skill, provided there's anything left to repair. In most cases, you will also be able to open these locks and can attempt a Lockpicking check at +3 DC. If you also possess that skill, you may of course use it instead.