The 5-methyluridine is invariably found at position 54 in the TΨC loop of tRNAs of most organisms. In Pyrococcus abyssi, its formation is catalyzed by the S-adenosyl-l-methionine-dependent tRNA (uracil-54, C5)-methyltransferase (PabTrmU54), an enzyme that emerged through an ancient horizontal transfer of an RNA (uracil, C5)-methyltransferase-like gene from bacteria to archaea. The crystal structure of PabTrmU54 in complex with S-adenosyl-l-homocysteine at 1.9 Å resolution shows the protein organized into three domains like Escherichia coli RumA, which catalyzes the same reaction at position 1939 of 23S rRNA. A positively charged groove at the interface between the three domains probably locates part of the tRNA-binding site of PabTrmU54. We show that a mini-tRNA lacking both the D and anticodon stem-loops is recognized by PabTrmU54. These results were used to model yeast tRNAAsp in the PabTrmU54 structure to get further insights into the different RNA specificities of RumA and PabTrmU54. Interestingly, the presence of two flexible loops in the central domain, unique to PabTrmU54, may explain the different substrate selectivities of both enzymes. We also predict that a large TΨC loop conformational change has to occur for the flipping of the target uridine into the PabTrmU54 active site during catalysis.