This French expression dates from the Middle Ages.

It means to make fun of something

but also has scatological connotations.