We study the Hodge conjecture for certain families of varieties over arithmetic quotients of balls and Siegel domain of degree two. As a byproduct, we derive formulas for Hodge numbers in terms of automorphic forms.PDF: Hodge Classes in the Cohomology of Local Systems.pdf