The word battery originates from Middle French batterie, meaning action of battering, from Old French, derived from battre which means to beat. First used in the 16th century in military contexts for artillery. The electrical sense emerged in the 18th century when Benjamin Franklin borrowed the word for electricity.