lay the groundwork

中高级 (B2) neutral

Prepare the foundation for something.

"Years of research laid the groundwork for the eventual breakthrough."