i mean they had the same ideals and the same basic beliefs
They shared the same ideals and basic beliefs.