They start off unrelated.
However they start to converge in the last few sets of books. I forget which ones specifically (5th Foundation? The one after FoundationsFoundation's Edge I think). Sort of like HeinliensHeinlein's universe as fiction-as-fiction notion to unify all his books. But Asimov did it a little bit cleaner I think.