Cut half the head of red cabbage into slices with a sharp knife. Then shred the individual pieces again with the knife. Dice the onion. Heat the oil in the pan (about level 6 of 10, does not have to be too hot).
When the oil is hot, sauté the onions in the pan for 1 - 2 minutes, then add the red cabbage. Then cover the pan and let it cook for about 15 minutes. Mix occasionally with a spatula.
Then peel the garlic cloves, chop them up and add them to the red cabbage. Now season with pepper and salt and cook for another 3 - 4 minutes.
The roasted red cabbage can be seasoned with caraway, Tabasco or other spices, depending on your taste and main course.