m represents units of mass, and c2 is the speed of light squared, or multiplied by itself. it is equal to energy.
the equation says that energy and mass (matter) are interchangeable; they are different forms of the same thing.
The reason how it is related to the speed of light is that energy, be it light waves or radiation, travels at the speed of light.