From a Proto-Romance/Vulgar Latin root *mocc-, imitative of laughter. See also Middle French moquer, Portuguese moca, English mock.
Practice speaking and memorizing "mueca" and many other words and sentences in Spanish.