California Penal Code Section 187 defines homicide as the unlawful killing of a human being or a fetus with malice aforethought. This legal definition is crucial for understanding various categories of homicide, including murder and manslaughter, as it sets the foundation for determining culpability and the severity of penalties associated with these offenses.