Twain made a substantial amount of money through his writing, but he lost a great deal through investments. He invested mostly in new inventions and technology, particularly the Paige typesetting machine. It was a beautifully engineered mechanical marvel that amazed viewers when it worked, but it was prone to breakdowns.