Inherited from Vulgar Latin *pestellus, diminutive of Late Latin pestulus, alteration of Latin pessulus. Compare Catalan pestell.
Practice speaking and memorizing "pestillo" and many other words and sentences in Spanish.