This invention relates to a compound of formula I or a pharmaceutically acceptable salt thereof. Such compounds possess both muscarinic receptor antagonist and ss2 adrenergic receptor agonist activities. The invention also relates to pharmaceutical compositions comprising such compounds, processes and intermediates for preparing such compounds, and methods of using such compounds as bronchodilating agents to treat pulmonary disorders.