By building military bases around the world, imperialist nations mainly aimed to

resupply naval vessels.
protect far-flung colonies.
initiate wars in several places at once.
avoid warfare within their own nation.