During his career as a judge, his most notable achievement was presiding over the trial in which Oscar Wilde was convicted for "committing acts of gross indecency with other male persons". Willis sentenced Wilde to two years' hard labour. The judge described the sentence, the maximum allowed, as "totally inadequate for a case such as this," and that the case was "the worst case I have ever tried". Wilde's response "And I? May I say nothing, my Lord?" was drowned out in cries of "Shame" in the courtroom.