Thomas "Tom" Canty is a fictitious character from Mark Twain's 1881 novel The Prince and the Pauper.
He was born the same day as Edward Tudor, the Prince of Wales in 1537 and grew up in a life of poverty with his abusive, alcoholic father and grandmother.
He was well educated and learned Latin from Father Andrew, a local priest.
They exchange clothes with one another, and then due to a mistake, it is assumed that Tom is the Prince of Wales, not Edward.
The end of the book mentions that Tom was appointed a royal librarian and lived to be a very old man, whereas Edward tragically died at the age of 15.