Most likely The Flintstones (1960–66), starring Fred Flintstone and Barney Rubble—the iconic caveman duo.
Other possibilities:
Recall setting, animation style, or names to pinpoint.