AI Just Decoded the Hidden Message in Da Vinci’s The Last Supper
The refectory falls quiet. A long table, a single still moment, and a dozen faces frozen in paint.
The Last Supper was painted on that wall more than 500 years ago, for the refectory of the convent of Santa Maria delle Grazie in Milan. Look at each figure’s hands, clothing and expression, and the picture starts to say far more than it first appears to. A keen eye can see beyond the image.
Scientists have scanned it. Restorers have mapped its pigments. Historians have spent decades tracing the name of every man at the table.
Some say a secret code is hidden in the painting. Others say the strange shapes people spot there are the product of environmental damage and repeated repairs. Centuries of botched restoration attempts have been stripped away, and lines that were once crude and inexpressive now look delicate and refined.
Now a new claim has entered the argument. According to the account behind this story, artificial intelligence has found a pattern in the mural that human experts may have overlooked.
But here is the part that sounds chilling. The account suggests Leonardo was not painting only a religious moment. Hidden in the walls, the angles and the silence of that room, it says, may lie “his most dangerous secret.”
What was he really trying to tell us? To weigh that question, it helps to start with the room, the Duke and the task.
Leonardo da Vinci painted The Last Supper on the wall of a dining hall in Milan known as the refectory. The room belongs to the Dominican convent of Santa Maria delle Grazie. Duke Ludovico Sforza asked Leonardo to make the painting between 1495 and 1498.
The Duke wanted an image that suited both the church and the status of his court. The refectory was a public place, where monks ate and where visitors saw the house of the Duke and the church standing side by side. The subject matched the setting perfectly.

The Last Supper shows a shared meal and a key event in the Christian story. It fit a room where communal meals took place every day. Leonardo even planned the scene so that the painted table faced the real tables in the hall, which made the image part of everyday life there.
The wall panel where he worked measures roughly 4.6 by 8.8 meters. Across from it stands a smaller work, a Crucifixion by Giovanni Donato da Montorfano. Above the mural, architectural elements and painted decorations link the work to the chapel and to the Sforza family.
The placement kept the painting in a space of prayer, politics and display. It was devotion and public image on a single wall.
Leonardo approached the task with a clear aim: to make a human scene. He set Jesus at the center and arranged the twelve apostles in four distinct groups of three. Each group reacts differently, and hands, heads and bodies form short scenes inside the larger picture.
Light from the windows behind Jesus makes the central figure brighter. It also explains the gestures rippling out around him.
The method Leonardo chose was not the normal wet plaster fresco. He worked on a dry, sealed wall and used mixed media that let him layer paint slowly. That allowed soft edges, blended skin tones and subtle detail, and it let him rework faces and gestures as he went.
It gave him control over fine expression. But it also meant the paint sat on the surface of the wall rather than sinking into wet plaster.
The commission fit into a larger building program in Milan. Architects such as Donato Bramante were active in the city at the time, and the ducal court supported music, sculpture and new buildings. Leonardo moved between painting and scientific study while he worked for the Duke.
His presence at Santa Maria delle Grazie joined him to a circle of artists, engineers and patrons who reshaped Milan in the late 15th century. The records show he painted slowly, testing poses, refining hands and changing details. He placed the figures on a low bench and used the architecture of the painted room to echo the real space.
The result is a balance of narrative action and calm focus on Jesus. The choice of subject, the size of the wall, the patron and the room all shaped how Leonardo worked. The Last Supper began as a commission tied to power and worship, and it became a test of new methods and creative design.
But the account points to a twist. Leonardo’s genius, it says, was also his greatest gamble. The very method that gave the painting its lifelike glow would also seal its fragile fate.
How long could such beauty survive?
Leonardo used a slow method for The Last Supper. He painted on a sealed wall with dry layers, mixing oil and tempera instead of working in wet plaster. That choice let him blend skin tones, smooth transitions and correct faces and gestures as the work continued.
He aimed for softer light and finer detail than a true fresco would allow. Over time, that ambition caused problems. Moisture and salts in the wall made the paint lift and flake, while smoke, dust and humidity gathered on the surface.
People tried to help, and often made things worse. Over the centuries, repairs used heavy paint and hard varnish that changed the look of faces and clothes. Early restorers in the 16th and 17th centuries made quick fixes, painting over losses and filling holes.
In the 18th and 19th centuries, replicas and copies circulated that showed how people of the time read the scene. Some copyists altered gestures or faces to suit local taste. Those copies later made it harder to know what Leonardo had originally chosen.
The 20th century brought fresh damage. During World War II, the building was hit by bombs, and sandbags were stacked to protect the artworks inside. A doorway had also been cut through the wall near the painting at an earlier date, removing part of the lower edge and forcing later repairs.
Attempts to move the painting failed and raised alarm among conservators.
Then came a large modern restoration, directed by Pinin Brambilla Barcilon. Her team worked from 1978 to 1999, removing layers of dirt and discolored varnish. They used solvents and fine tools to lift paint added long after Leonardo, aiming to reveal the original where it survived and to stabilize what remained.
Scientific tools guided the work. Infrared reflectography showed underdrawing and changes Leonardo made while planning. X-ray imaging revealed denser pigments and later fills, ultraviolet light showed where varnish had been applied, and chemical tests identified original pigments and later substances.
Those techniques let the team tell original strokes from later touches. Even so, the restoration raised questions. Some people argued the team removed too much in places.
Other experts praised the careful work and the use of science. Conservators noted the gaps where paint had been lost and filled them with creative care. Viewers can now see surviving original paint alongside deliberate reconstruction, though how much weight to give each remains a matter of debate.
After the restoration, the site received new protection. Climate control was installed in the refectory to reduce humidity swings. Access was limited to small groups to cut down on heat and carbon dioxide from visitors, and strict rules were set to slow the wall’s decay.
Technical studies also showed how Leonardo changed his mind while working. Infrared images reveal pentimenti, drawn changes where he shifted heads or arms. In some places the underdrawing lines do not match the surface paint, because later hands repainted lost areas.
The painting we see today carries traces of Leonardo and of centuries of change. The materials he chose allowed fine detail but made the surface fragile. Repairs, wartime threats and restoration choices have all been layered onto the original design.
Science can help separate some of those layers. But beyond the brushstrokes and the repairs lies a deeper puzzle: the people in the scene. Who exactly are these figures around Jesus, and why did Leonardo arrange them this way?
The painting places Jesus at the center with twelve companions around him, and tradition gives each one a name. From left to right, the usual list reads Bartholomew, James the Lesser and Andrew. The next group shows Judas Iscariot, Simon Peter and John.
Jesus sits beneath a bright window. To his right are Thomas, James the Greater and Philip. At the far right sit Matthew, Jude Thaddeus and Simon the Zealot.
Bartholomew stands near the table edge, his body turned toward the center. James the Lesser sits tense and wide-eyed, and Andrew pulls back with raised hands. Together they read as a group of startled witnesses.
Judas sits in shadow in the next group. He leans away and, in several readings, holds a small purse. His posture is closed, in contrast to Peter, who leans in with a small knife visible in his right hand.
John appears beside Peter with a youthful, smooth face. Leonardo often painted young men with soft features and long hair, which the account offers as the reason for John’s look here.
Jesus sits still at the center. The window behind him throws light that frames his head, and his hands hover near the bread and a cup on the table. The placement of Jesus against that bright opening makes him the visual anchor of the whole scene.
On Jesus’s right, Thomas raises a finger and seems to press a point. James the Greater covers his mouth with both hands, while Philip leans forward with open palms, seeking an answer. The gestures read as disbelief mixed with a demand for clarity.
At the far right, Matthew turns toward Jude Thaddeus as if speaking to him. Jude looks toward Jesus with a heavy brow, and Simon the Zealot holds his beard and listens. The trio moves from private talk at the back toward the center.
Leonardo grouped the twelve into four trios, and each trio acts like a short scene that adds rhythm to the whole picture. Heads and hands create lines that move attention around the table. The table itself becomes a stage where small actions carry the main moment.
How do scholars confirm who is who? They read hand positions, note where the eyes point and match gestures to lines in the Gospels. They also compare copies and related paintings to find repeated patterns.
Painters in Leonardo’s circle, often called the Leonardeschi, copied the design. Notable followers include Giampietrino, Andrea Solario and Marco d’Oggiono. Their copies preserve poses and faces that help scholars decide which parts came from Leonardo.
One well-known copy, the Tongerlo Last Supper, shows many of the same poses. That panel helps reveal studio work and small shifts in form. By matching details across the Milan wall and the workshop copies, experts build a map of which gestures and face types belong to the original plan.
The soft face of John is the detail that catches the eye. Leonardo used gentle features for young male figures in other works, and that style explains why John looks so different from Peter and Judas.
But despite all the careful study, one idea has whispered on far beyond the art world. If Leonardo truly meant John, why do so many believe otherwise?
Some writers and researchers have argued that the figure to Jesus’s right is not John at all, but Mary Magdalene. The claim grew far larger after Dan Brown wrote a novel that placed the idea at the center of its plot. The book named the figure Mary and spun secret bloodlines from it.

The story made people look at the painting differently. Tourists and writers searched for signs, and television shows and online videos used pattern matching and visual tricks, such as small similarities in face shape or hair, to argue for a different gender. For many viewers, the image fit the story they wanted to see.
Art historians answered with facts. They pointed to the style Leonardo used for young men, noting that John often appears with soft features in Renaissance art. In their view, that look came from tradition and from how artists were taught to draw faces.
Scholars also looked at the painting’s technical record. The face beside Jesus shows signs consistent with John when compared with Leonardo’s other works and with workshop copies. Those copies place the same figure in nearly identical poses and label him as John.
Conservation work adds another point. The painting has lost much of its paint, and some visible lines come from later repairs. Where a detail survives only in a later repaint, it cannot be read as Leonardo’s intent.
Infrared images and underdrawing also feed the discussion. According to the experts cited in the account, an original underdrawing matches a male disciple, and the weight of the evidence supports John.
Still, the argument has not gone away. The novel and the films that followed kept the Mary claim alive, and new videos have added layers of theory about secret marriages and revised church histories. Some authors cite older texts or odd medieval claims in support, while others point to older art that used symbols for different reasons.
The gap between a literary thriller and art history keeps the story going. One side relies on careful study and laboratory results, and the other on pattern reading and popular thrills. Each side sees the same wall and comes away with a different story.
In short, the Mary Magdalene idea grew from a small theory into a mass story. Experts pushed back with studio copies, technical photographs and conservation reports, and they say the truth depends on the lines under the paint and on stable documents from the period. Those records, they argue, favor the old reading that the figure is John the Apostle.
But if the old records seemed to close the case, the new tools threatened to reopen it. What if technology could peer beneath centuries of paint and find something the experts missed?
According to the account, a team fed high-resolution photographs, infrared reflectograms, multispectral scans and X-ray maps into a machine learning program. The program studied face shapes, hand positions, brushstrokes and the fall of light. It then compared those patterns with hundreds of works by Leonardo and his circle and mapped similar lines on the Milan wall.
The software, the account says, highlighted repeated shapes, underdrawing matches and echoes in studio copies. Three markers rose above the rest.
The first marker is a jaw shift on the figure to Jesus’s right. Infrared underdrawing shows a curved line near the ear, while the surface paint sits slightly forward of that curve. The program reportedly matched the line to the same shape in a Giampietrino copy and on the Tongerlo panel, and the match appears in original layers, not only in later repaints.
The second marker is a hand near Judas. The underdrawing shows a compact grip low at the table edge, yet the surface paint shows longer fingers. The program reportedly found those longer fingers repeated in four Leonardesque works, which the account reads as a link to a repainting and to a deliberate change in pose.
The third marker is a faint draft line behind Jesus. In visible light it looks like a shadow, but infrared shows a clear drawn stroke. The machine stacked the layers and found that the stroke curves in a faint arc that also appears in a Solario copy.
That arc frames a small area where the window light narrows. Taken together, the account says, the three markers fall on a single visual line, running from the disciple’s jaw through Jesus and down to the hand near Judas.
The program plotted where Leonardo drew, erased and redrew that axis. The jawline moves, the hand shifts and the draft arc alters. Those changes, the account says, are recorded in the underdrawing and in original pigment tests from the 1978 to 1999 restoration.
The pattern, it argues, is not scattered. It guides the eye along the table and across the figures.
The program also scored facial geometry. It measured brow angle, jaw slope and cheek form against a portrait database from the late 15th century. A filmmaker and painter named Greenway, who is fascinated by new ways of seeing classic works, is mentioned in the account in connection with such efforts.
On that test, the disciple fit the male templates Leonardo used for young followers in other works. Yet a hairline curve at the jaw matched a few workshop copies with softer faces, which gave the program a mixed signal. The account reads that mix as planned ambiguity rather than error.
Next, the system compared its findings with the pigment maps from the Brambilla Barcilon restoration. Where tests showed original pigment beneath later paint, the jaw shift and the draft arc were present in the original layers. Where a detail rested only on later paint, the program treated it as secondary.
The combined result, the account says, reads as a layered message. Leonardo drew a male face, then moved that line. He changed a hand and laid an arc behind Jesus, and his studio echoed those moves in copies.
Later repairs filled the losses, but the original strokes and the repaint echoes could still be found. The machine connected those strokes across layers and offered a single clear visual line. That line ties the disciple to Jesus and to Judas by placement and by repeated gesture.
The program rated the alignment as intentional and early in the planning stage. It placed the core marks in underdrawing and pigment tests that date to Leonardo’s own time. In its reading, this was a designed visual statement embedded in the painting plan.
What would that mean for the scene? The account says the axis affects how we read it, placing emphasis on relation and sequence. It points to choices of pose and light meant to pull the viewer’s eye along a designed route through the picture.
There are reasons for caution. The account does not name the team behind the analysis or point to a published study, so the findings cannot be checked from what is presented. Skeptics of such readings often note that any pattern-hunting tool, human or machine, can find lines that connect when it is told to look for them.
The account itself admits the limits. The painting we see today is a mix of Leonardo’s hand, later repairs and studio echoes. AI can point at shapes and patterns, but the final answer still depends on underdrawings, pigment maps and the careful work of experts.
So which view fits the evidence? On the identity of the figure, the weight of the technical record, the workshop copies and Leonardo’s habits with young male faces favors John, and the Mary Magdalene theory remains a popular story rather than a proven fact. On the AI’s “hidden axis,” the claim is intriguing but unverified, and its meaning is open to interpretation.
What is certain is that the mural keeps drawing people back. Five centuries on, a quiet room in Milan still holds a table, a dozen faces and a question nobody has fully settled.