How can a headland be a harbor?

Can you answer this question?