Metathesis of Old French tiule, from Latin tēgula. Doublet of tégule, a borrowing. Compare Italian tegola. Compare also Middle French teille, the Champenois form inherited from Vulgar Latin *tegla.
Practice speaking and memorizing "tuile" and many other words and sentences in French.