Preheat your oven to 375°F (190°C).
Wash the spaghetti squash thoroughly and pat it dry.
Carefully slice the squash in half lengthwise using a sharp knife.
Scoop out the seeds and fibrous strands from the center using a spoon.
Drizzle olive oil over the cut sides of the squash and season with salt and pepper.
Place the squash halves, cut side down, on a baking sheet lined with parchment paper or aluminum foil.
Bake in the preheated oven for 35-45 minutes, or until the flesh is tender and easily pierced with a fork.
Remove the squash from the oven and let it cool for a few minutes.
Using a fork, scrape the flesh of the squash to create long strands resembling spaghetti.
Serve the spaghetti squash hot with your favorite toppings, such as marinara sauce, grated cheese, or fresh herbs.