The first public defibrillator in Bath helped a woman who collapsed yesterday, hours after being unveiled by Bath MP Don Foster.
Defibrillators are life-saving devices used when someone is in cardiac arrest and fighting for their life.
The Automated External Defibrillator (AED), which is in Upper Borough Walls, was used after a woman collapsed outside the Theatre Royal.
It can be used by members of the public after an access code is given out by the ambulance service.
It is the first such device for the city, a second will be installed in Larkhall in the coming months.
Susan Bowen from Bath and Northeast Somerset Council, who installed the device, said: "It just demonstrates the immediate value of installing in the city and the need for more machines both in the city centre and the surrounding villages."
The defibrillator in Upper Borough Walls was placed outside the Volunteer Rifleman pub in memory of Dave (Wally) Waldron, a popular taxi driver who died of a heart attack in Bath on April 19, 2014.
He had been fundraising for the defibrillator before he died.
Customers and local councillore Caroline Roberts and Douglas Nicol raised the money to have the defibrillator installed.
Paul Alvis, landlord of teh pub said: "I'm absolutely delighted we have been able to provide the local community with this lifesaving equipment."
Nobody thought it would have to be used so soon.