The only free and comprehensive online etymological dictionary of the Spanish language
ultimar (Verb) "to finish"

17th cent. From Latin ultimare 'id.,' from ultimus "last" (see último).