Tie-breakpublished at 18:30 GMT 23 November 2019
*GB 6-3 6-6 (1-1) Spain
Lopez jabs into the net with a backhand, before whipping a forehand winner beyond Edmund.
Jamie Murray & Neal Skupski lose to Rafael Nadal & Feliciano Lopez in decisive doubles
Nadal beats GB number one Dan Evans 6-4 6-0 to level tie
Kyle Edmund had beaten Spain's Lopez 6-3 7-6 (7-3) to give GB 1-0 lead
Andy Murray left out again by captain Leon Smith
Lopez a late replacement for Pablo Carreno Busta who felt unwell
Alex Bysouth
*GB 6-3 6-6 (1-1) Spain
Lopez jabs into the net with a backhand, before whipping a forehand winner beyond Edmund.
GB 6-3 6-6 Spain*
Kyle Edmund has not veered from that expression of steely focus all match. He cranks his way to 40-0, and holds to love.
Tie-break o'clock...
Jonathan Jurejko
BBC Sport at Caja Mágica
Although they're on the opposite sit of the arena to the media seats, and we're surrounding by noisy Spaniards, you can still hear the 1000-strong British contingent.
The tambourine is out, Liam Gallagher style, livening up a rendition of 'When the Brits go marching in".
*GB 6-3 5-6 Spain
Image source, Getty ImagesLopez wrestles his way to 40-15 before slicing a backhand into the tramlines.
This time he comes a-leaping towards the net like a lord on the 10th day of Christmas... and swats away a volley to hold.
GB 6-3 5-5 Spain*
Feliciano Lopez miscues as he stumbles back beyond his own baseline. Momentum back with Kyle Edmund and GB? The shaggy-haired Spaniard hits back with a sweeping serve. 30-15.
Miles Maclagan
Former British Davis Cup player on BBC Radio 5 Live Sports Extra
That was very, very strong from Edmund. You did worry as Lopez has got his teeth into this match.
Edmund was in a bit of bother but he served his way out of it.
GB 6-3 5-5 Spain*
And he holds.
Magnificent from Kyle Edmund under massive pressure in a fiery Madrid.
From two set points down, to 5-5.
*GB 6-3 4-5 Spain
Another string-scorcher of a serve from Kyle Edmund. Back to deuce.
He pours cold water all over those Spanish set points...
Jonathan Jurejko
BBC Sport at Caja Mágica
Blimey, Kyle Edmund doesn't even let the Madrid crowd quieten down before spanking that ace down the middle. Cojones. The Spanish were still on their feet celebrating.
*GB 6-3 4-5 Spain
ACE!
Right on the money from Kyle Edmund.
One set point to go for Feliciano Lopez...
*GB 6-3 4-5 Spain
Huge couple of points coming up for Edmund. He needs to show some resilience here...
He misses with a forehand to the corner, that flops into the tramlines. Well out.
Two set points for Lopez and Spain.
*GB 6-3 4-5 Spain
Serve-and-volleying like a prime-time Tim Henman, Kyle Edmund. Using every bit of GB experience from over the years to try and fend off Feliciano Lopez...
Edmund thinks a Lopez lob is dropping long, but has to scuttle round it when it falls inside the baseline - he's caught out, the return is soft and Lopez smashes it away.
15-30.
*GB 6-3 4-5 Spain
BIG second serve from Feliciano Lopez, bouncing high into the body of Kyle Edmund to fend off a potential break point. And then what a winner! What a point...
Edmund comes pounding into the net to try and pick up the cutest of Lopez drop shots, he gets there but can only watch as the Spaniard swats away his response to hold.
Arms in the air, Lopez milks the home applause.
GB 6-3 4-4 Spain*
That's superb. Kyle Edmund sticking Lopez way out wide and then popping a forehand into the space left behind. Lopez hits the net to try and counter that approach on the next point, but jabs his volley wide. 15-30.
GB 6-3 4-4 Spain*
Pressure? What pressure? Kyle Edmund seizes on a slightly short ball to slap it away on the forehand and hold serve.
*GB 6-3 3-4 Spain
Good depth from Feliciano Lopez, sticking one around the feet of Kyle Edmund to crank up the pressure gauge just a notch.
*GB 6-3 3-4 Spain
Kyle Edmund teases his way to 15-0, but the headband-sporting Lopez forces him long.
The British player is having to dig in and grind a little at the minute, and that'll do it... tip-toeing into the net and seeing of his opponent at the second attempt. 40-15.
*GB 6-3 3-4 Spain
Lopez holds. A solid second set from the stand-in Spaniard. Neither player yet to find a break.
Jonathan Jurejko
BBC Sport at Caja Mágica
Andy Murray would much rather be out there, of course, but the former world number one is again providing impressive vocal support.
Dulcet Dunblane tones of encouragement can be heard drifting across the Caja Magica. When the Spanish brass band aren't tooting away.
Image source, Getty ImagesGB 6-3 3-3 Spain*
Image source, Getty ImagesKyle Edmund is making music with his racquet strings, up in the stands the visiting fans are stirring a tune with bells on. It doesn't faze Feliciano Lopez, however, as he cruises to 40-0.