Comorbidities can significantly impact prognosis by complicating the disease course and limiting treatment options. For example, a patient with both cardiovascular disease and diabetes may have a poorer prognosis due to the compounded effects of both conditions.