Leonardo completed his most famous work - the "Last Supper" - just before his patron, Duke Lodovico Sforza, died in 1499. At the time Leonardo was in the Duke's service, he learned a great deal about mechanics, science, mathematics and physics. Da Vinci would later use this knowlegde to invent the first flying machine.