Sentence:  Closely related to this <WSD>function</WSD> is the fact that the religious system provides a body of ultimate ends for the society , which are compatible with the supreme eternal ends . 
Meaning of the word marked with <WSD> tags:  what something is used for