I have a dark ring on my leg right above the ankle. What causes that condition?

Lord of the Ring... Well if it's not due to either a recent tattoo or in need of a good scrub, then I'm afraid you will have to have it evaluated. A history of the condition as well as looking into pigmentation, environmental or systemic possibilities need to be explored.