If you are floating out in space in a spaceship with no windows and I place a large massive planet underneath the spaceship, you will be pulled towards the floor. This is the force of gravity. But if instead I accelerate the ship upwards, you will experience exactly the same sensation of being pulled towards the floor. Einstein hypothesized that there is no way to distinguish between the two: gravity and acceleration produce the same effects.

