From Vulgar Latin, Late Latin quāglum/ *coāglum, from Latin coāgulum. Doublet of coagulo, a borrowing.
Practice speaking and memorizing "caglio" and many other words and sentences in Italian.