A pacemaker includes a pulse generator, a conduction line, and a pacemaker electrode. The pacemaker electrode includes a body and an insulation layer. The body includes at least one carbon nanotube yarn. The carbon nanotube yarn includes a number of carbon nanotubes. The carbon nanotubes are interconnected along one axis of the body by van der Waals force. The insulation layer covers an outer surface of the body.