Traditionally, emphasis has been placed on durable, long-lasting electronics. However, electronics that are meant to intentionally degrade over time can actually have significant practical applications. Biodegradable, or transient, electronics would open up opportunities in the field of medical implants, where the need for surgical removal of devices could be eliminated. Environmental sensors and, eventually, consumer electronics would also greatly benefit from this technology. An essential component of transient electronics is the battery, which serves as a biodegradable power source. This work involves the fabrication, characterization, and modeling of a magnesium-based biodegradable battery. Galvanostatic discharge tests show that an anode material of magnesium alloy AZ31 extends battery lifetime by over six times, as compared to pure magnesium. With AZ31, the maximum power and capacity of the fabricated device are 67 μW and 5.2 mAh, respectively, though the anode area is just 0.8 cm2. The development of an equivalent circuit model provided insight into the battery's behavior by extracting fitting parameters from experimental data. The model can accurately simulate device behavior, taking into account its intentional degradation. The size of the device and the power it produces are in accordance with typical levels for low-power transient systems.