Os transtornos mentais e comportamentais (TMC) configuram como uma das principais causas de afastamento do trabalho no Brasil e no mundo. Objetivos: Analisar a prevalência do afastamento do trabalho de acordo com a Classificação Internacional de Doenças e Problemas Relacionados à Saúde -10ª Revisão, com estratificação da doença definida como "Transtornos Mentais e Comportamentais" dos servidores efetivos da Universidade Federal de Ouro Preto e sua relação com os determinantes sociodemográficos e ocupacionais, no período de 2011 a 2019. Métodos: Estudo epidemiológico com delineamento transversal e abordagem quantitativa, realizado a partir de dados primários e secundários. A população foi composta por servidores públicos federais com licenças médicas para tratamento da própria saúde no período de 9 anos. A análise foi realizada por meio de estatística descritiva e bivariada. Utilizou-se o teste de Wilcoxon (Mann-Whitney) e de Poisson para avaliação de existência de associação entre as variáveis. Resultados: Foram analisados 733 prontuários de servidores elegíveis nos critérios de admissão. A tendência das taxas de afastamento foi de crescimento no período de 9 anos. Na amostra, 23,2% (n = 170) apresentaram afastamento do trabalho por transtornos mentais e comportamentais -o sexo feminino apresentou 57,6%, e os técnicos administrativos em educação apresentaram 62,3%. Na análise multivariada (teste de Poisson), apenas o desfecho "momento do primeiro afastamento por transtornos mentais e comportamentais" apresentou associação com a variável tempo de Universidade Federal de Ouro Preto. Conclusões: A alta prevalência de transtornos mentais e comportamentais encontrada nesta investigação alerta para a magnitude do problema, evidenciando-se a urgência da implantação de medidas de detecção de fatores psicossociais de risco associados ou não ao trabalho. Palavras-chave | saúde do trabalhador; licença médica; transtornos mentais; universidades.