Mechanical waves transfer energy by including vibration in the propagation medium electromagnetic waves do not require a medium for propagation but still transfer energy by having an electric and magnetic field propagate perpendicular to one another. Hope this helps:)