CAL. BPC. CODE § 16600 : California Code - Section 16600

Except as provided in this chapter, every contract by which anyone is restrained from engaging in a lawful profession, trade, or business of any kind is to that extent void.