After 1640, military involvement was reduced. The Order concentrated on the coastal defence and on ordnance duties, but did not avoid the chance to send help to the Republic of Venice, then engaged in a desperate war against the Ottoman Empire. The order's last military action dates from 1719. Grand Duke Peter Leopold of Tuscany promoted a reorganization of the order, turning it into an institute for education of the Tuscan nobility.