The world’s first lock and key system was invented in ancient Egypt around 4000 BCE. Made of wood, it used simple pins and bolts to secure doors, a design that still influences modern locks today.