Government Code § 54981
CHAPTER 12. Municipal Services and Functions
The legislative body of any local agency may contract with any other local agency for the performance by the latter of municipal services or functions within the territory of the former.