However , during the decisive years between 2140 2040 b.c. , a split occurred between the two Kingdoms when rival power bases arose in Heliopolis in Lower Egypt and Thebes ( modern Luxor ) in Upper Egypt .
The kingdoms split when a civilization popped up in Heliopolis and grew even larger in size .