Preheat the oven to 425°F (220°C)
Pat the chicken legs dry with paper towels
Place the chicken legs on a baking sheet or in a roasting pan
Brush or rub the chicken legs with oil
Season with salt, pepper, and any desired spices or herbs
Arrange the chicken legs in a single layer with space between them
Roast for 35 to 45 minutes
Turn the chicken legs halfway through cooking if desired
Check that the internal temperature reaches 165°F (74°C)
Let the chicken legs rest for 5 to 10 minutes before serving
