Both matter, but in my experience strong results come from keeping on-page foundations clean first (structure, content relevance, internal links) and then supporting it with steady off-page signals. Without solid on-page, off-page efforts don’t perform as well.