Preheat oven to 400 degrees F.
Toss butternut squash with olive oil and garlic in a large bowl or directly on a baking sheet. Season with salt and black pepper. Arrange coated squash in a single layer on the baking sheet.
Roast in the preheated oven until squash is tender and lightly browned, 25 to 30 minutes.