that's what it takes
which means everything that is needed.
Example: You have to spend a lot of money becuase that's what it takes to make a winning team.
A similar expression is "to have what it takes" and this one means to have the skills, power or intelligence to do something, or, to have the qualities or character needed to achieve something.
I guess I don't have what it takes to be a good actor.
All the candidates think they have what it takes to get the job.