1590s, "principal spring of a mechanism" (of a watch, clock, gun, etc.), from main (adj.) + spring (n.3). Figurative meaning "impelling cause or motive of any action" is from 1690s.
mainland
mainline
mainly
mainmast
mainsail
mainspring
mainstay
mainstream
maintain
maintainable
maintenance