2010 wasn't so terrible. They were drawn with England, Slovenia, Algeria. They were able to advance and they lost to Ghana in the first knockout round.
In 2006, they were in what most people considered the group of death, with Italy, Czech Rep., Ghana. They did not make it out of the group. They needed to beat Ghana in the last group game, but couldn't.