Borrowed from Latin pīrāta, from Ancient Greek πειρατής (peiratḗs), from πεῖρα (peîra, “trial, attempt, plot”).
Practice speaking and memorizing "pirata" and many other words and sentences in Portuguese.