My parents were Marxists, and so were my grandparents.
My parents and their parents were Marxists.