Nicotine receptor agonists or analogs or derivatives thereof for treating inflammatory pulmonary diseases, and pharmaceutical compositions including nicotine receptor agonists or analogs or derivatives thereof. Compounds of formula wherein R1, R2, Xa and Ya are as defined herein are also provided.