How important is on-page SEO optimisation?

There are a bunch of aspects in considerations for SEO but one of the most important aspects how important is on-page SEO optimisation?