Wash the chicken legs, pat dry, pepper, salt and place in a suitable casserole dish (there must be some space between the legs). Pour the juice of the two lemons over them.
Remove the peel from the garlic cloves. Cut the onions into large cubes.
Spread the olives, tomatoes, onion cubes and the garlic cloves between the legs. Spread the sprigs of rosemary and thyme over the top and drizzle everything with the olive oil. Sprinkle some more sea salt and freshly ground pepper over the top. Cook at 250 ° in a preheated oven for 15 minutes. Then switch off the oven and cook for another 20-25 minutes.