A locksmith installs, repairs, and maintains locks and security systems for homes, businesses, and vehicles. They also cut keys, provide emergency lockout services, and offer security consultations. Key duties include installing new locks, changing lock combinations, repairing existing locks, and ensuring the security of key systems.