Seemingly from unguis m (“fingernail, talon”) + -ula (diminutive suffix), although it is not clearly diminutive in sense and its formation is irregular (a Latin diminutive normally matches the gender of the base noun).
Practice speaking and memorizing "ungula" and many other words and sentences in Latin.