Answer
When a medium is vibrated at one point (e.g., shaking the end of a rope, dipping a finger in and out of a pool of water), that is the source of mechanical waves in the medium.
When an electric charge shakes back and forth, it generates electromagnetic waves.