From Latin pistus (“crushed, pounded”), from Latin pīnsō (“to pound, beat, crush”), whose frequentative also gave Italian pestare (“to pound”).
Practice speaking and memorizing "pesto" and many other words and sentences in Italian.