To lay the groundwork / To lay the foundations
Describes establishing the foundational conditions or principles for something to develop. Sentar las bases de algo = to lay the groundwork for something.
This meeting will serve to lay the groundwork for the project.
The agreement laid the foundations for lasting cooperation.
—How did you start? —By laying the groundwork from the beginning.