During World War I, the Battle of Cocos opposed the German Kaiserliche Marine and the Royal Australian Navy for the control of Cocos telegraphic post, that permitted communications between the United Kingdom and the Pacific Ocean Dominions.