After his studies Kafka took a job in an insurance company. He was good at his job although he hated it. He found the office work boring, and he spent his nights writing. In 1917 he got tuberculosis. Gradually he became more and more ill. He had to retire in 1922. He spent some time in hospital. He died in Klosterneuburg in 1924.