During World War I, Japan officially declared war on Germany.
Source
More: germany, Japan, World War I