The current cardiac pacemakers are battery dependent, and the pacing leads are prone to introduce valve damage and infection, plus a complete pacemaker retrieval is needed for battery replacement. Despite the reported wireless bioelectronics to pace the epicardium, open-chest surgery (thoracotomy) is required to implant the device, and the procedure is invasive, requiring prolonged wound healing and health care burden. We hereby demonstrate a fully biocompatible wireless microelectronics with a self-assembled design that can be rolled into a lightweight microtubular pacemaker for intravascular implantation and pacing. The radio frequency was used to transfer energy to the microtubular pacemaker for electrical stimulation. We show that this pacemaker provides effective pacing to restore cardiac contraction from a nonbeating heart and have the capacity to perform overdrive pacing to augment blood circulation in an anesthetized pig model. Thus, this microtubular pacemaker paves the way for the minimally invasive implantation of leadless and battery-free microelectronics.