Having a clear sense of structure in mind when you start writing is really helpful.
So make sure you generate an outline. Start by making a list of the various sections you think you’ll need in your writing project. You can reorder them later. After that, make a list of the more specific elements you need in each section.