The final episodes of Sonic X were produced around 2004. That's when the series wrapped up its original run.