Using a practice called information architecture.
Information architecture (IA) is a practice of deciding how to organize, structure, and label content for a website, application, or other project to support usability and findability of the information it contains. It is the foundation or blueprint for good web design and user experience. Initiating the IA process is the first thing you should do when designing a website.