Sentence:  Closely related to this function is the fact that the religious system provides a body of ultimate <WSD>ends</WSD> for the society , which are compatible with the supreme eternal ends . 
Meaning of the word marked with <WSD> tags:  the state of affairs that a plan is intended to achieve and that (when achieved) terminates behavior intended to achieve it