A click on the giant cookie produces one cookie in Cookie Clicker. At first, clicking is your only way to bake; once you accumulate enough cookies, you can spend them on items that bake automatically.
Cookies therefore serve as both your growing stockpile and the means to expand production. The goal is to bake faster and amass larger quantities, with no true ending to the game.