Pharmaceutical composition there is provided herein heterocyclic derivative compound and comprising the compound, these inhibitors of complement factor d. This compound can be used for treating complement-associated disease and include, but are not limited to, autoimmunity, inflammation and neurodegenerative disease.