question on how copy gets your site ranked

I am trying to figure out what it takes to get a website ranked let alone on to the first page of a google search. I have a brand new website and am starting the process of writing. What determines whether or not my site gets ranked? I have ton's of questions but I'm hoping to start a discussion that will lead to where I want to go. Thanks for any help