to make something such as a plan or system seem completely useless or ineffective:
This building plan makes a mockery of the government's environmental policy.
when someone laughs at someone or something or shows that they think they are stupid:
There was a hint of mockery in his voice.
something that is completely useless or ineffective:
She said that the trial had been a mockery.