An adventure is a self-contained collection of story elements, characters, and settings that form the basis for the story you and the other players tell. You'll have major beats you want to include, some consistent characters, and themes you want to convey, but all sorts of things can change during the process of turning the outline into a completed story.
Prewritten adventures include background information and nonplayer characters needed for the story, plus all the locations, maps, and monsters necessary for both exploration and encounters. Prewritten adventures can speed up your preparation, since you can simply read the relevant sections of the adventure before a game, and you don't have to create everything from scratch. A published adventure already includes the expected amount of encounters and treasure, and you can find adventures built for different character levels to match your group. Reading a published adventure or running one as your first game can help you see how adventures are structured, which makes it easier to write one later if you choose.
A published adventure is prewritten, but it's not set in stone. Changing the details of an adventure to suit your group isn't just acceptable, it's encouraged! Use the backstories and predilections of the player characters to inform how you change the adventure. This can mean altering adversaries so they're linked to the player characters, changing the setting to a place some of the player characters are from, excising particular scenes if you know they won't appeal to your players, or including additional scenes and side quests tailored to the interests of your players or the background and preferences of their characters.
Building your own adventure can be much more challenging than using a published one, but it lets you express yourself, be even more creative, and tailor the game directly to the players and their characters. Chapter 2 contains guidance on building your own adventures, as well as tools and resources for designing content for your players.
Adventure plotting can start at many different points. You might begin with a particular antagonist, then construct an adventure that fits that villain's theme and leads the group to them. Alternatively, you could start with an interesting location for exploration, then populate it with adversaries and challenges appropriate to the setting. You can start with even less—perhaps a moment or interaction you'd like to see occur, an item or subsystem you'd like to incorporate, a genre you want to explore, or simply an atmosphere you'd like to create.