After WW2, the U.K. and France signed the Treaty of Dunkirk which assured that each would defend the other if attacked. This was primarily done as a deterrent to the U.S.S.R. which had "annexed" several Eastern European countries before and during WW2.