The four letters ANCE were hidden inside a brass lock for more than 400 years, until researchers used scans to see how its tiny parts fit together. The lock came from the Ann Francis, a ship wrecked on the Welsh coast in 1583, and its code had stayed unknown since the vessel went down.

The discovery shows how modern tools can help museums study fragile objects without opening or damaging them by force. Experts from Amgueddfa Cymru—Museum Wales and Cardiff University examined the lock with micro-CT scanning, which creates detailed images of an object's inner structure. The method let them trace how the lock's notches lined up with its letter dials and work out the combination.

Dr. David Williams, a research associate at Cardiff University's School of Engineering, made the 3D images. He said the technology is usually used to study bones and other biological structures. Investigating a 400-year-old padlock was a first for his team. After identifying the letters, Williams waited for museum staff to test them. The test worked: ANCE unlocked the lock.

The Ann Francis met a violent storm on the evening of Dec. 28, 1583, as it returned from Spain. Blown off course, the ship wrecked at Margam Beach, near Port Talbot. Its cargo lay under the sand for centuries. Storms and dredging later stripped away layers of sand, and metal detectorist Peter Hughes found much of the hoard over 21 years, from 1996 to 2017. The collection was acquired by Amgueddfa Cymru.

The lock was found near Spanish silver coins and two coin weights. Researchers believe it once secured a small chest, but what the chest held is still unknown. It might have contained valuable objects that have not survived, such as documents or textiles. Alastair Willis, senior curator for numismatics and the Welsh economy at Amgueddfa Cymru, said the lock is in unusually good condition and linked to a shipwreck with a known date. Even with the code solved, one question remains: whether ANCE meant something to the person who set it.

Hughes recalled being struck by the lock's workmanship and condition when he found it. The combination dials still turned easily after centuries beneath the sand, he said, and he wondered what might have been inside the chest.

The lock is now part of a display of Ann Francis artifacts at the National Waterfront Museum in Swansea. The exhibition, “Tides of Treasure,” also includes rare gold coins from the reign of Ferdinand and Isabella of Spain and a boatswain's whistle from the wreck. It is scheduled to remain on display until September 2027. The code is known at last, but the lock's original purpose—and the chest's contents—still leave room for discovery.