To charge the battery of an electric bicycle, you need to plug the charger into a power outlet and connect it to the battery. The charging time can vary depending on the battery size and the charger. Generally, it takes around 4 to 6 hours to fully charge an e-bike battery.