Borrowed from Latin epitaphium, from Ancient Greek ἐπιτάφιον (epitáphion, “funeral oration”), neuter form of ἐπιτάφιος (epitáphios, “over the grave”), from ἐπί (epí, “over”) + τάφος (táphos, “tomb, grave”).
Practice speaking and memorizing "epitafio" and many other words and sentences in Spanish.