He went on to study law at Prague University; during that time he also became involved in theatre (as an actor he first appeared in Jan Nepomuk Štěpánek's play Czech and German in July 1832 in Benešov[1]), where he met Eleonora Šomková, with whom he had a son out of wedlock.
Eventually he moved to Litoměřice, a quiet town some 60 km from Prague, to prepare for law school exams and to write poetry.
Three days before he was to be married to Šomková, just a few weeks after he had begun working as a legal assistant, Mácha overexerted himself while helping to extinguish a fire and soon thereafter died.
His lyrical epic poem Máj (May), published in 1836 shortly before his death, was judged by his contemporaries as confusing, too individualistic, and not in harmony with the national ideas.
Mácha also authored a collection of autobiographical sketches titled Pictures From My Life, the 1835–36 novel Cikáni (Gypsies),[5] and several individual poems, as well as a journal in which, among other things, he detailed his sexual encounters with Šomková.
[2] The Diary of Travel to Italy describes his journey to Venice, Trieste, and Ljubljana (where he met the Slovene national poet France Prešeren) in 1834.