The alliance has served both countries throughout their respective military histories, influencing the participation of the United Kingdom in the Peninsular War, the UK's major land contribution to the Napoleonic Wars and the establishment of an Anglo-American base in Portugal. Portugal aided England (and later the UK) in times of need, for example, in the First World War. Today, Portugal and the United Kingdom are both part of NATO, a larger intergovernmental military alliance between several North American and European states that accounts for over 70% of total global military spending.