Under Title VII of the Civil Rights Act of 1964, pregnancy, childbirth, and related medical conditions must be treated in the same way as other temporary illnesses or conditions. Under the California Fair Employment and Housing Act, an employer must generally provide up to four months of disability leave to a woman who is disabled due to pregnancy, childbirth, or a related medical condition. However, if an employer provides more than four months of leave for other types of temporary disabilities, the same leave must be made available to women who are disabled due to pregnancy, childbirth, or a related medical condition. Additionally, employers are generally required to provide a reasonable accommodation to a pregnant employee when requested with the advice of her health care provider related to her pregnancy, childbirth, or related medical condition. It is illegal for an employer to discriminate against or harass an employee because of her pregnancy.