make a mockery of
make a mockery (out) of (something)
To treat something in a way that shows contempt for it, or makes it seem foolish. As usual, Hal made a mockery of the assignment, starting every sentence with the letter Y for no reason. I'm afraid that the pop star's candidacy has made a mockery out of this election.
make a mockery of something
to make a deliberate parody or a poor imitation of something. What a mess. You made a mockery of the task. You have made a mockery of my position!