When he was later dispatched to Leiria to work as a municipal administrator, Eça de Queirós wrote his first realist novel, "O Crime do Padre Amaro" ("The Sin of Father Amaro"), which is set in the city and first appeared in 1875.