The site was inhabited the during the Preclassic and Classic periods , from the 9th century BC through to at least the 10th century AD . The site flourished in the Preclassic and Classic periods , from the 9th century BC through to at least the 10th century AD , and was an important center of commerce , trading with Kaminaljuyu and ChocolÃ .