Giacomo Casanova died in a box.
Giacomo Girolamo Casanova ( [ ˈdʒaːkomo dʒiˈrɔːlamo kazaˈnɔːva ] or [ kasaˈnɔːva ] 2 April 1725 -- 4 June 1798 ) was an Italian adventurer and author from the Republic of Venice . He spent his last years in Bohemia as a librarian in Count Waldstein 's household , where he also wrote the story of his life .