Hertha Ayrton married William Edward Ayrton, a physicist and electrical engineer who was previously her teacher at Finsbury Technical College. This marriage was significant as William Ayrton was supportive of her scientific endeavors, and their partnership further propelled Hertha's research and career.