Relation between CAPM and Efficient frontier

How are they related? Main thing i am looking for is if they are any way dependent on each other to be true?Or One can be true even though other is not corect?