Sly loses his memory. He is injured inside the Copper vault, and Carmelita — who finds him — convinces him that he is her assistant rather than the thief she has chased for years.
It looks very much as though the two end up married, though the game never states it outright. The last you see of him is on Bentley's binocucom: he winks, and then the credits roll.