Judah was nominally subject to Egypt, which, however, was weakened by internal troubles, and therefore unable either to assert its authority in Judah or help its king to resist the advance of the Israelites.