Disclosed are compounds of the formula (I) which block the interaction of CCR1 and its ligands and are thus useful for treating a variety of diseases and disorders that are mediated or sustained through the activity of CCR1 including autoimmune diseases, such as rheumatoid arthritis and multiple sclerosis. Also disclosed are pharmaceutical compositions comprising these compounds, methods of using these compounds in the treatment of various diseases and disorders, processes for preparing these compounds and intermediates useful in these processes.