Sentence:  But he had to perform the <WSD>rites</WSD> of hospitality, had to behave politely to his ally. 
Meaning of the word marked with <WSD> tags:  A prescribed behavior.