It's something called an Infinity Gem. Apparently there's six of them, and each controls something major. Time, Power, Mind, Soul, Space... and the one messing with all of us, Reality.
The reason the gem and all of us are in space is because theyre trying to keep us constantly on the move, due to some big bad that wants to collect all the gems and essentially become a god.