There are several conditions:
Firstly, your general must have more than 3 piety.
Secondly, the relic in question that you can get from the town is not already taken by another general.
Thirdly, your general has less than 8 ancillaries.