Secondary hypercholesterolemia, not inherited familiar one,specifically, high LDL cholesterol, is associated with hypothyroidism (that is, low thyroid hormone levels), pregnancy, and kidney failure.
Secondary hypertriglyceridemia is associated with diabetes, excess alcohol intake, obesity, and certain prescription medications (such as glucocorticoids and estrogen).

So, to control hyperlipidemia, first we have to remove or control the above risk factors or causes.

A picture got from google is quite nice in illustration the treatment of hyperlipidemia:

Besides, if you are diagnosed hyperlipidemia, you'd better go for screening tests for hypertension, diabetes, and some coronary diseases, as they are the other elements of the so-called "X-symdrome".