What were the similarities in political structures, religion, and social structure in Mesopotamia and Egypt?

What were the similarities in political structures, religion, and social structure in Mesopotamia and Egypt? What were the main differences?