Moonquakes

I sometimes hear about moonquakes and marsquakes…
What are they exactly? Are they trigered by the same mechanisms as earthquakes?
What do we know about them?