FEHA is the main law governing employment discrimination in California. It prohibits businesses from firing workforce as they really are a member of the guarded class.
Regardless that employment is at will in https://jmllaw.com/areas-of-practice/employment-law/wrongful-termination.shtml