Demo Name failed at the agrégation in 1950 but took it again and succeeded the following year. After a brief period lecturing at the École Normale, he took up a position at the Université Lille Nord de France, where from 1953 to 1954 he taught psychology. In 1954 Foucault published his first book, Maladie mentale et personnalité, a work which he would later disavow. At this point, Foucault was not interested in a teaching career, and he undertook a lengthy exile from France. In 1954 he served France as a cultural delegate to the University of Uppsala in Sweden (a position arranged for him by Georges Dumézil, who was to become a friend and mentor). In 1958 Foucault left Uppsala and briefly held positions at Warsaw University and at the University of Hamburg.
Foucault returned to France in 1960 to complete his doctorate and take up a post in philosophy at the University of Clermont-Ferrand. There he met philosopher Daniel Defert, who would become his lover of twenty years.[8] In 1961 he earned his doctorate by submitting two theses (as is customary in France): a "major" thesis entitled Folie et déraison: Histoire de la folie à l'âge classique (Madness and Insanity: History of Madness in the Classical Age) and a "secondary" thesis which involved a translation of, and commentary on Kant's Anthropology from a Pragmatic Point of View. Folie et déraison (Madness and Insanity — published in an abridged edition in English as Madness and Civilization and finally published unabridged as "History of Madness" by Routledge in 2006) was extremely well-received. Foucault continued a vigorous publishing schedule. In 1963 he published Naissance de la Clinique (Birth of the Clinic), Raymond Roussel, and a reissue of his 1954 volume (now entitled Maladie mentale et psychologie or, in English, "Mental Illness and Psychology") which he would again disavow.
After Defert was posted to Tunisia for his military service, Foucault moved to a position at the University of Tunis in 1965. He published Les Mots et les choses (The Order of Things) during the height of interest in structuralism in 1966, and Foucault was quickly grouped with scholars such as Jacques Lacan, Claude Lévi-Strauss, and Roland Barthes as the newest, latest wave of thinkers set to topple the existentialism popularized by Jean-Paul Sartre. Foucault made a number of skeptical comments about Marxism, which outraged a number of left wing critics, but later firmly rejected the "structuralist" label.[9] He was still in Tunis during the May 1968 student riots, where he was profoundly affected by a local student revolt earlier in the same year. In the Autumn of 1968 he returned to France, where he published L'archéologie du savoir (The Archaeology of Knowledge) — a methodological response to his critics — in 1969.