What is the meaning of Mainspring?

The principal spring of a clockwork mechanism, which drives it by uncoiling.

The most important reason for, or element of, something.

Source: wiktionary.org