Pacemakers prevent or reduce irregular heartbeats. They are implanted under the skin to treat symptoms of bradycardia or slow heart rate.