In the spring of 1485, Leonardo travelled to Hungary on behalf of Sforza (Duke of Milan) to meet king Matthias Corvinus, and was commissioned by him to paint a Madonna.