To place a call from London to Madrid, you need to dial the international access code followed by Spain's country code and Madrid's area code. The full dialing sequence is 00 34 91 plus the local phone number.
Here's the breakdown:
For example, to reach a Madrid number like 555 123 456, you would dial: 00 34 91 555 123 456.
Remember that when calling from a mobile phone, you can replace the leading 00 with + (e.g., +34 91 555 123 456).