Lee McAvoy was at the Library during the attack of the Vashta Nerada in the 51st century. He was saved, like all the others, by being uploaded to the hard drive of the computer.
At some point he was introduced to the newly downloaded Donna Noble, by Doctor Moon. They fell in love and got married, having a simulated son Josh and simulated daughter Ella.
Lee and Donna lost each other while being rescued from the computer, Donna's last words to him being a promise that she would one day find him. Donna was led to believe that Lee wasn't a real human. It turned out that he was a human after all, but since he had a stuttering problem, he couldn't call out to her when she left with the Doctor.
"Lee" was apparently not his real name, as Donna determined that no one with that name was in the Library when the Vashta Nerada attacked. (DW: Forest of the Dead)