Giacomo Casanova 17, in 1742, with a degree in law ("for which I felt an unconquerable aversion"). His guardian's hope was that he would become an ecclesiastical lawyer. Casanova had also studied moral philosophy, chemistry, and mathematics, and was keenly interested in medicine. ("I should have been allowed to do as I wished and become a physician, in which profession quackery is even more effective than it is in legal practice.") He frequently prescribed his own treatments for himself and friends. While attending the university, Casanova began to gamble and quickly got into debt, causing his recall to Venice by his grandmother,
Giacomo Casanova but could not sustain it. He ran the business poorly, borrowed heavily trying to save it, and spent much of his wealth on constant liaisons with his female workers who were his "harem". For his debts, Casanova was imprisoned again, this time at For-l'Évêque, but was liberated four days afterwards, upon the insistence of the Marquise d'Urfé. Unfortunately, though he was released, his patron de Bernis was dismissed by Louis XV at that time and Casanova's enemies closed in on him. He sold the rest of his belongings and secured another mission to Holland to distance himself from his troubles.