Hybrid rocket engines combine the two ideas. The two propellants are different states of matter, often with liquid oxidisers and solid fuels. They are not used very often, but may be safer than solid rocket motors or liquid rocket engines.