The prevailing hypothesis today is that the Moon formed after a Mars-sized body (named Theia) collided with Earth via but does it float - http://butdoesitfloat.com/