Wiktionary
make a mockery of
vb. (context idiomatic transitive English) To (l en mock); to (l en ridicule) or (l en imitate), often to express (l en contempt)
Usage examples of "make a mockery of".
Guards and prisons would only make a mockery of what they had tried to achieve.