The invention features compounds that are inhibitors of COX-2 activity. Certain of the compounds are inhibitors of FAAH activity as well as COX-2 activity. The compounds include a 5-membered or 6-membered substituted or unsubstituted heteroaryl or heterocyclyl ring having one or two heteroatoms selected from the group consisting of O, S, and N that is linked to two substituted or unsubstituted 6-membered aryl or heteroaryl groups that can be the same or different.