Understanding client requirements, Business goals, What purpose needs to be served, Who is the target audience and kind of content needs to be on the website.
Then putting a plan together based on the requirements gathered and finalizing it, And understanding the available resources and deciding on what technologies will be used to create the website.