Preheat your oven to 400°F (200°C).
Mince the garlic cloves and finely chop the fresh rosemary and thyme.
In a small bowl, combine the minced garlic, rosemary, thyme, sea salt, black pepper, and half of the olive oil to create a thick herb paste.
Pat the pork loin dry with a paper towel and rub the herb paste evenly over all sides of the meat.
Place the pork loin in the center of a roasting pan or a large oven-safe skillet.
Trim the ends of the green beans and toss them with the remaining olive oil and a small pinch of salt.
Arrange the green beans in a single layer around the pork loin in the pan.
Roast in the oven for 25 to 30 minutes, or until the internal temperature of the pork reaches 145°F (63°C).
Remove the pan from the oven and transfer the pork to a cutting board.
Let the meat rest for at least 5 to 10 minutes before slicing to ensure the juices redistribute.
Serve the sliced pork loin alongside the roasted green beans.