	From 1984 (succeeding Mattias Duyves) until 2017, Hekma was an assistant professor and teacher at the University of Amsterdam, specializing in the sociology and history of (homo)sexuality. Hekma's research is part of an academic counterculture, and some of his statements, in particular about pedophilia and about sadomasochism, have caused conflicts between him and some of his colleagues and the university board, and resulted in threats directed at Hekma.