Locking doors is the act of securing entryways to prevent unauthorized access, ensuring safety and privacy in homes and buildings.