In the context of cancer, G-CSF is commonly used to prevent or treat neutropenia, a condition characterized by abnormally low levels of neutrophils. Neutropenia often occurs as a side effect of chemotherapy, making patients more susceptible to infections. By administering G-CSF, oncologists can help maintain the patient's immune function and allow for higher doses of chemotherapy to be given.