In the course of the Second World War, both countries had a complicated relationship. Portugal first stayed neutral, but in 1942, the Allies occupied Portuguese Timor. This led to the Battle of Timor.