The Michelson-Morley experiment aimed to detect the existence of the luminiferous ether by measuring differences in the speed of light moving in different directions through the ether. However, the experiment found no differences, indicating that either the ether does not exist or the Earth is stationary within the ether. This null result was unexpected and challenged theories of mechanics at the time. The experiment helped establish the theory of relativity by showing that the speed of light is constant regardless of the motion of its source. It marked the beginning of major changes in how space and time were conceived.