It boils down to proof of work, which is the most complex part to understand about bitcoin.