Britain and France joined the war to free Poland, which had been invaded by Germany an Russia. For a while Germany kicked out the Russians, and then the Russians kicked out Germany. In the end Poland was only freed in 1989. So WWII ended in 1989 even though the fighting ended much earlier.